Private GIT

Skip to content
Snippets Groups Projects
Commit ac01e256 authored by supergonkas's avatar supergonkas
Browse files

Update limetorrents.py

parent e3173b36
Branches
Tags
No related merge requests found
...@@ -91,7 +91,8 @@ class LimeTorrentsProvider(TorrentProvider): # pylint: disable=too-many-instance ...@@ -91,7 +91,8 @@ class LimeTorrentsProvider(TorrentProvider): # pylint: disable=too-many-instance
# ]]> # ]]>
description = item.find('description') description = item.find('description')
seeders = try_int(description.find_all('br')[0].next_sibling.strip().lstrip('Seeds: ')) seeders = try_int(description.find_all('br')[0].next_sibling.strip().lstrip('Seeds: '))
leechers = try_int(description.find_all('br')[1].next_sibling.strip().lstrip('Leechers: ')) else: leechers = try_int(description.find_all('br')[1].next_sibling.strip().lstrip('Leechers: '))
else:
#<description>Seeds: 6982 , Leechers 734</description> #<description>Seeds: 6982 , Leechers 734</description>
description = item.find('description').text.partition(',') description = item.find('description').text.partition(',')
seeders = try_int(description[0].lstrip('Seeds: ').strip()) seeders = try_int(description[0].lstrip('Seeds: ').strip())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment