Private GIT

Skip to content
Snippets Groups Projects
Commit 8b119923 authored by Julien LE JEUNE's avatar Julien LE JEUNE Committed by miigotu
Browse files

FIX your changes

parent 8601f9db
Branches
No related tags found
No related merge requests found
...@@ -80,8 +80,9 @@ class Torrent9Provider(TorrentProvider): ...@@ -80,8 +80,9 @@ class Torrent9Provider(TorrentProvider):
continue continue
with BS4Parser(data, 'html5lib') as html: with BS4Parser(data, 'html5lib') as html:
import ipdb;ipdb.set_trace() torrent_rows = html.find('div', {'class': 'table-responsive'})
torrent_rows = html.find('div', {'class': 'table-responsive'}).findAll('tr') if not torrent_rows:
continue
for result in torrent_rows: for result in torrent_rows:
try: try:
title = result.find('a').get_text(strip=False).replace("HDTV", "HDTV x264-Torrent9") title = result.find('a').get_text(strip=False).replace("HDTV", "HDTV x264-Torrent9")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment