Merge pull request #124 from Supremicus/feature/PirateBayWorkaround

Change ThePirateBay to use oldpiratebay
This commit is contained in:
JackDandy 2014-12-22 11:34:05 +00:00
commit 7e0275037d
2 changed files with 4 additions and 3 deletions

View file

@ -8,6 +8,7 @@
* Add lowercase PM to the General Config/Interface/Time style selection
* Change General Config/Interface/Trim zero padding to Trim date and time, now handles 2:00 pm > 2 pm
* Fix trim zero of military time hour to not use 12 hr time
* Change ThePirateBay to use oldpiratebay as a temporary fix
[develop changelog]

View file

@ -61,11 +61,11 @@ class ThePirateBayProvider(generic.TorrentProvider):
self.proxy = ThePirateBayWebproxy()
self.url = 'http://pirateproxy.net/'
self.url = 'http://oldpiratebay.org/'
self.searchurl = self.url + 'search/%s/0/7/200' # order by seed
self.searchurl = self.url + 'search.php?q=%s&Torrent_sort=seeders.desc' # order by seed
self.re_title_url = '/torrent/(?P<id>\d+)/(?P<title>.*?)//1".+?(?P<url>magnet.*?)//1".+?(?P<seeders>\d+)</td>.+?(?P<leechers>\d+)</td>'
self.re_title_url = 'href=["\'](?P<url>magnet:.*?)&.*?/torrent/(?P<id>\d+)/(?P<title>.*?)".+?seeders-row sy">(?P<seeders>\d+)</td>.+?leechers-row ly">(?P<leechers>\d+)</td>'
def isEnabled(self):
return self.enabled