fix gazelle to work with broken websites
This commit is contained in:
parent
6243a60f68
commit
c8025bfe5b
2 changed files with 61 additions and 51 deletions
|
|
@ -63,8 +63,9 @@ class GazelleBrowser(BaseBrowser):
|
|||
assert self.is_on_page(TorrentsPage)
|
||||
return self.page.iter_torrents()
|
||||
|
||||
def get_torrent(self, id):
|
||||
self.location('/torrents.php?torrentid=%s' % id)
|
||||
def get_torrent(self, fullid):
|
||||
id, torrentid = fullid.split('.', 1)
|
||||
self.location(self.buildurl('/torrents.php', id=id, torrentid=torrentid))
|
||||
|
||||
assert self.is_on_page(TorrentsPage)
|
||||
return self.page.get_torrent(id)
|
||||
return self.page.get_torrent(fullid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue