Private GIT

Skip to content
Snippets Groups Projects
Commit d7bdca4e authored by Sébastien Ferrand's avatar Sébastien Ferrand
Browse files

Update cpasbien.py

Récupération du nom du fichier en passant par le dernier élément du tableau : plus fiable que de passer par l'index utilisé précédemment
parent 8855e44c
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class CpasbienProvider(generic.TorrentProvider): ...@@ -98,7 +98,7 @@ class CpasbienProvider(generic.TorrentProvider):
torrentSoup = BeautifulSoup( torrentPage ) torrentSoup = BeautifulSoup( torrentPage )
#downloadTorrentLink = torrentSoup.find("a", title.startswith('Cliquer')) #downloadTorrentLink = torrentSoup.find("a", title.startswith('Cliquer'))
tmp = pageURL.split('/')[6].replace('.html','.torrent') tmp = pageURL.split('/')[-1].replace('.html','.torrent')
downloadTorrentLink = ('http://www.cpasbien.pe/telecharge/%s' % tmp) downloadTorrentLink = ('http://www.cpasbien.pe/telecharge/%s' % tmp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment