Private GIT

Skip to content
Snippets Groups Projects
Commit 7568f45a authored by P0psicles's avatar P0psicles
Browse files

The data.decode was giving errors. Returned html should be in unicode, so...

The data.decode was giving errors. Returned html should be in unicode, so don't see any reason to decode. But maybe i'm wrong? For this worked, tested for a limited set of shows.
parent 1717939c
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ class DanishbitsProvider(TorrentProvider): # pylint: disable=too-many-instance-
continue
try:
with BS4Parser(data.decode('iso-8859-1'), features=["html5lib", "permissive"]) as html:
with BS4Parser(data,"html5lib") as html:
# Collecting entries
entries = html.find_all('tr', attrs={'class': 'torrent'})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment