[weboob] [PATCH 2/3] t411 site url changed

Matthieu Weber mweber+weboob at free.fr
Wed Mar 9 18:02:25 CET 2016


From: Julien Veyssier <eneiluj at gmx.fr>

Signed-off-by: Matthieu Weber <mweber+weboob at free.fr>
---
 modules/t411/browser.py        | 2 +-
 modules/t411/pages/torrents.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/t411/browser.py b/modules/t411/browser.py
index cc4d610..918d594 100644
--- a/modules/t411/browser.py
+++ b/modules/t411/browser.py
@@ -35,7 +35,7 @@ class T411Browser(LoginBrowser):
     PROFILE = Wget()
     TIMEOUT = 30
 
-    BASEURL = 'https://www.t411.in/'
+    BASEURL = 'https://www.t411.ch/'
     home = URL('$', HomePage)
     search = URL('torrents/search/\?search=(?P<pattern>.*)&order=seeders&type=desc',
                  SearchPage)
diff --git a/modules/t411/pages/torrents.py b/modules/t411/pages/torrents.py
index 225124f..5965a68 100644
--- a/modules/t411/pages/torrents.py
+++ b/modules/t411/pages/torrents.py
@@ -50,7 +50,7 @@ class SearchPage(LoggedPage, HTMLPage):
 
             def obj_url(self):
                 fullid = Regexp(CleanText('./td[3]/a/@href'),'/torrents/nfo/\?id=(.*)')(self)
-                downurl = 'https://www.t411.in/torrents/download/?id=%s'%fullid
+                downurl = 'https://www.t411.ch/torrents/download/?id=%s'%fullid
                 return downurl
 
             def obj_size(self):
@@ -78,7 +78,7 @@ class TorrentPage(LoggedPage, HTMLPage):
 
         def obj_url(self):
             fullid = CleanText('//input[@id="torrent-id"][1]/@value')(self)
-            downurl = 'https://www.t411.in/torrents/download/?id=%s'%fullid
+            downurl = 'https://www.t411.ch/torrents/download/?id=%s'%fullid
             return downurl
 
         obj_filename = CleanText('//div[@class="accordion"]//tr[th="Torrent"]/td')
-- 
2.1.4




More information about the weboob mailing list