animedia: Fix problems2 (#12050) Related #12049

* Fix animedia indexer errors

* Animedia: Fix download url
This commit is contained in:
Dmitry Chepurovskiy 2021-07-19 02:04:23 +03:00 committed by GitHub
parent 047c09665d
commit 7fd8202660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ namespace Jackett.Common.Indexers
var tr_id = t.Attributes["href"].Value;
var tr = document.QuerySelector("div" + tr_id);
release.Title += " - " + composeTitleAdditionalInfo(t, tr);
release.Link = new Uri(document.QuerySelector("div.download_tracker > a.btn__green").Attributes["href"].Value);
release.Link = new Uri(tr.QuerySelector("div.download_tracker > a.btn__green").Attributes["href"].Value);
release.MagnetUri = new Uri(tr.QuerySelector("div.download_tracker > a.btn__d-gray").Attributes["href"].Value);
release.Seeders = long.Parse(tr.QuerySelector("div.circle_green_text_top").Text());
release.Peers = release.Seeders + long.Parse(tr.QuerySelector("div.circle_red_text_top").Text());