diff --git a/nova/engines/jackett.py b/nova/engines/jackett.py index 1f0a316..35762a6 100644 --- a/nova/engines/jackett.py +++ b/nova/engines/jackett.py @@ -1,4 +1,4 @@ -#VERSION: 3.00 +#VERSION: 3.01 # AUTHORS: Diego de las Heras (ngosang@hotmail.es) # CONTRIBUTORS: ukharley # hannsen (github.com/hannsen) @@ -137,8 +137,10 @@ class jackett(object): else: continue # try to fix link due to jackett bug - if res['link'].startswith('http://localhost:8081'): - res['link'] = res['link'].replace('http://localhost:8081', self.url) + 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') diff --git a/nova/engines/versions.txt b/nova/engines/versions.txt index c484ed1..0ca1071 100644 --- a/nova/engines/versions.txt +++ b/nova/engines/versions.txt @@ -1,5 +1,5 @@ eztv: 1.01 -jackett: 3.00 +jackett: 3.01 leetx: 2.00 legittorrents: 2.03 limetorrents: 4.01 diff --git a/nova3/engines/jackett.py b/nova3/engines/jackett.py index 1f0a316..35762a6 100644 --- a/nova3/engines/jackett.py +++ b/nova3/engines/jackett.py @@ -1,4 +1,4 @@ -#VERSION: 3.00 +#VERSION: 3.01 # AUTHORS: Diego de las Heras (ngosang@hotmail.es) # CONTRIBUTORS: ukharley # hannsen (github.com/hannsen) @@ -137,8 +137,10 @@ class jackett(object): else: continue # try to fix link due to jackett bug - if res['link'].startswith('http://localhost:8081'): - res['link'] = res['link'].replace('http://localhost:8081', self.url) + 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') diff --git a/nova3/engines/versions.txt b/nova3/engines/versions.txt index c484ed1..0ca1071 100644 --- a/nova3/engines/versions.txt +++ b/nova3/engines/versions.txt @@ -1,5 +1,5 @@ eztv: 1.01 -jackett: 3.00 +jackett: 3.01 leetx: 2.00 legittorrents: 2.03 limetorrents: 4.01