Skip to content

Commit

Permalink
Fixed: (Shazbat) Fix Guid
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Feb 15, 2023
1 parent e713e58 commit f03a64f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NzbDrone.Core/Indexers/Definitions/Shazbat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ private IList<ReleaseInfo> ParseResults(IndexerResponse indexerResponse, bool ha
var rows = dom.QuerySelectorAll("#torrent-table tr.eprow, table tr.eprow");
foreach (var row in rows)
{
var downloadUrl = row.QuerySelector("td:nth-of-type(5) a[href^=\"load_torrent?\"]")?.GetAttribute("href");
var infoUrl = row.QuerySelector("td:nth-of-type(5) [href^=\"torrent_info?\"]")?.GetAttribute("href");
var downloadUrl = _settings.BaseUrl + row.QuerySelector("td:nth-of-type(5) a[href^=\"load_torrent?\"]")?.GetAttribute("href");
var infoUrl = _settings.BaseUrl + row.QuerySelector("td:nth-of-type(5) [href^=\"torrent_info?\"]")?.GetAttribute("href");
var title = ParseTitle(row.QuerySelector("td:nth-of-type(3)"));

var infoString = row.QuerySelector("td:nth-of-type(4)")?.TextContent.Trim() ?? string.Empty;
Expand All @@ -328,8 +328,8 @@ private IList<ReleaseInfo> ParseResults(IndexerResponse indexerResponse, bool ha
var release = new TorrentInfo
{
Guid = infoUrl,
InfoUrl = _settings.BaseUrl + infoUrl,
DownloadUrl = _settings.BaseUrl + downloadUrl,
InfoUrl = infoUrl,
DownloadUrl = downloadUrl,
Title = title,
Categories = ParseCategories(title),
Size = size,
Expand Down

0 comments on commit f03a64f

Please sign in to comment.