From 48f8f1b1e322f8e3fc8b738312e780645211d3e8 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Thu, 11 Apr 2013 01:38:16 +0200 Subject: [PATCH] Revert "piratebay: New URL" This reverts commit 677ce3961d4ca29d96132fd9c1ae16859ac33eb1. https://torrentfreak.com/new-pirate-bay-greenland-domains-about-to-be-seized-130410/ --- modules/piratebay/browser.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/piratebay/browser.py b/modules/piratebay/browser.py index 1afc3f1b..c7867178 100644 --- a/modules/piratebay/browser.py +++ b/modules/piratebay/browser.py @@ -30,24 +30,24 @@ __all__ = ['PiratebayBrowser'] class PiratebayBrowser(BaseBrowser): - DOMAIN = 'thepiratebay.gl' + DOMAIN = 'thepiratebay.se' PROTOCOL = 'https' ENCODING = 'utf-8' USER_AGENT = BaseBrowser.USER_AGENTS['wget'] - PAGES = {'https://thepiratebay.gl/': IndexPage, - 'https://thepiratebay.gl/search/.*/0/7/0': TorrentsPage, - 'https://thepiratebay.gl/torrent/.*': TorrentPage + PAGES = {'https://thepiratebay.se/': IndexPage, + 'https://thepiratebay.se/search/.*/0/7/0': TorrentsPage, + 'https://thepiratebay.se/torrent/.*': TorrentPage } def iter_torrents(self, pattern): - self.location('https://thepiratebay.gl/search/%s/0/7/0' % urllib.quote_plus(pattern.encode('utf-8'))) + self.location('https://thepiratebay.se/search/%s/0/7/0' % urllib.quote_plus(pattern.encode('utf-8'))) assert self.is_on_page(TorrentsPage) return self.page.iter_torrents() def get_torrent(self, id): try: - self.location('https://thepiratebay.gl/torrent/%s/' % id) + self.location('https://thepiratebay.se/torrent/%s/' % id) except BrowserHTTPNotFound: return if self.is_on_page(TorrentPage):