Fix Jackett search plugin (#82)

This commit is contained in:
Diego Heras 2019-03-05 19:32:05 +01:00 committed by GitHub
parent 8bd1b7db86
commit 8c1932330a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#VERSION: 3.01
#VERSION: 3.02
# AUTHORS: Diego de las Heras (ngosang@hotmail.es)
# CONTRIBUTORS: ukharley
# hannsen (github.com/hannsen)
@ -136,11 +136,6 @@ class jackett(object):
res['link'] = res['link'].text
else:
continue
# try to fix link due to jackett bug
if res['link'].startswith('http'):
splitter = res['link'].split('/jackett/dl/')
if splitter[0] != self.url:
res['link'] = res['link'].replace(splitter[0], self.url)
res['size'] = result.find('size')
res['size'] = -1 if res['size'] is None else (res['size'].text + ' B')

View File

@ -1,5 +1,5 @@
eztv: 1.01
jackett: 3.01
jackett: 3.02
leetx: 2.00
legittorrents: 2.03
limetorrents: 4.01

View File

@ -1,4 +1,4 @@
#VERSION: 3.01
#VERSION: 3.02
# AUTHORS: Diego de las Heras (ngosang@hotmail.es)
# CONTRIBUTORS: ukharley
# hannsen (github.com/hannsen)
@ -136,11 +136,6 @@ class jackett(object):
res['link'] = res['link'].text
else:
continue
# try to fix link due to jackett bug
if res['link'].startswith('http'):
splitter = res['link'].split('/jackett/dl/')
if splitter[0] != self.url:
res['link'] = res['link'].replace(splitter[0], self.url)
res['size'] = result.find('size')
res['size'] = -1 if res['size'] is None else (res['size'].text + ' B')

View File

@ -1,5 +1,5 @@
eztv: 1.01
jackett: 3.01
jackett: 3.02
leetx: 2.00
legittorrents: 2.03
limetorrents: 4.01