mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
parent
ddd119a4eb
commit
0782a15979
1 changed files with 10 additions and 3 deletions
|
@ -57,7 +57,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
||||||
var torrentInfo = new TorrentInfo();
|
var torrentInfo = new TorrentInfo();
|
||||||
|
|
||||||
torrentInfo.Guid = string.Format("BTN-{0}", torrent.TorrentID);
|
torrentInfo.Guid = string.Format("BTN-{0}", torrent.TorrentID);
|
||||||
torrentInfo.Title = torrent.ReleaseName;
|
torrentInfo.Title = CleanReleaseName(torrent.ReleaseName);
|
||||||
torrentInfo.Size = torrent.Size;
|
torrentInfo.Size = torrent.Size;
|
||||||
torrentInfo.DownloadUrl = RegexProtocol.Replace(torrent.DownloadURL, protocol);
|
torrentInfo.DownloadUrl = RegexProtocol.Replace(torrent.DownloadURL, protocol);
|
||||||
torrentInfo.InfoUrl = string.Format("{0}//broadcasthe.net/torrents.php?id={1}&torrentid={2}", protocol, torrent.GroupID, torrent.TorrentID);
|
torrentInfo.InfoUrl = string.Format("{0}//broadcasthe.net/torrents.php?id={1}&torrentid={2}", protocol, torrent.GroupID, torrent.TorrentID);
|
||||||
|
@ -87,5 +87,12 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string CleanReleaseName(string releaseName)
|
||||||
|
{
|
||||||
|
releaseName = releaseName.Replace("\\", "");
|
||||||
|
|
||||||
|
return releaseName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue