Private GIT

Skip to content
Snippets Groups Projects
Commit 3e37f673 authored by supergonkas's avatar supergonkas
Browse files

Merge pull request #561 from SickRage/duramato-patch-1

Torrent tracker also needs
parents 639ef009 cf252d7f
Branches
Tags
No related merge requests found
...@@ -81,6 +81,8 @@ class TORRENTPROJECTProvider(TorrentProvider): ...@@ -81,6 +81,8 @@ class TORRENTPROJECTProvider(TorrentProvider):
assert mode != 'RSS' assert mode != 'RSS'
logger.log(u"Torrent has less than 10 seeds getting dyn trackers: " + title, logger.DEBUG) logger.log(u"Torrent has less than 10 seeds getting dyn trackers: " + title, logger.DEBUG)
trackerUrl = self.urls['api'] + "" + t_hash + "/trackers_json" trackerUrl = self.urls['api'] + "" + t_hash + "/trackers_json"
if self.custom_url:
searchURL = posixpath.join(self.custom_url, searchURL.split(self.url)[1].lstrip('/')) # Must use posixpath
jdata = self.get_url(trackerUrl, json=True) jdata = self.get_url(trackerUrl, json=True)
assert jdata != "maintenance" assert jdata != "maintenance"
download_url = "magnet:?xt=urn:btih:" + t_hash + "&dn=" + title + "".join(["&tr=" + s for s in jdata]) download_url = "magnet:?xt=urn:btih:" + t_hash + "&dn=" + title + "".join(["&tr=" + s for s in jdata])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment