diff --git a/CHANGES.md b/CHANGES.md index 332aabf8..8fcb0cc3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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] diff --git a/sickbeard/providers/thepiratebay.py b/sickbeard/providers/thepiratebay.py index 954f4dcc..4cb5e388 100644 --- a/sickbeard/providers/thepiratebay.py +++ b/sickbeard/providers/thepiratebay.py @@ -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\d+)/(?P.*?)//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