Private GIT

Skip to content
Snippets Groups Projects
Commit 145edd43 authored by medariox's avatar medariox
Browse files

Fix small extratorrent provider bug

parent 552c95eb
Branches
Tags
No related merge requests found
......@@ -77,7 +77,7 @@ class ExtraTorrentProvider(TorrentProvider):
for item in parser.findAll('item'):
title = re.sub(r'^<!\[CDATA\[|\]\]>$', '', item.find('title').text)
# info_hash = item.get('info_hash', '')
size = try_int(item.find('size').text, -1)
size = try_int(item.find('size').text, -1) if item.find('size') else -1
seeders = try_int(item.find('seeders').text)
leechers = try_int(item.find('leechers').text)
enclosure = item.find('enclosure')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment