mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2025-01-08 03:00:16 +00:00
BTJunkie uses X instead of 0 if there are no seeds/leechers
This commit is contained in:
parent
730bc97ee9
commit
7787f75223
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ class BTJunkie(Search):
|
|||
f = urlopen(url)
|
||||
soup = BeautifulStoneSoup(f.read())
|
||||
for item in soup.findAll('item'):
|
||||
(name, seeds, leechers) = re.findall('(.*?)\s+\[(\d+)\/(\d+)\]$', item.title.text)[0]
|
||||
(name, seeds, leechers) = re.findall('(.*?)\s+\[(\d+|X)\/(\d+|X)\]$', item.title.text)[0]
|
||||
if seeds == 'X':
|
||||
seeds = 0
|
||||
if leechers == 'X':
|
||||
leechers = 0
|
||||
torrents.append({
|
||||
'url': item.enclosure['url'],
|
||||
'name': name,
|
||||
|
|
Loading…
Reference in a new issue