Fix Limetorrents encoding (#111)

This commit is contained in:
Diego Heras 2019-09-22 14:39:10 +02:00 committed by GitHub
parent 3725067ae8
commit aac8672ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#VERSION: 4.01
#VERSION: 4.02
# AUTHORS: Lima66
# CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
@ -6,9 +6,11 @@ import re
try:
# python3
from html.parser import HTMLParser
from urllib.parse import quote
except ImportError:
# python2
from HTMLParser import HTMLParser
from urllib import quote
# qBt
from novaprinter import prettyPrinter
@ -74,8 +76,9 @@ class limetorrents(object):
self.current_item["engine_url"] = self.url
self.item_name = "name"
elif link.endswith(".html"):
self.current_item["link"] = self.url + link
self.current_item["desc_link"] = self.url + link
safe_link = quote(self.url + link, safe='/:')
self.current_item["link"] = safe_link
self.current_item["desc_link"] = safe_link
def handle_data(self, data):
if self.inside_tr and self.item_name:

View File

@ -4,7 +4,7 @@ eztv: 1.10
jackett: 3.02
leetx: 2.00
legittorrents: 2.03
limetorrents: 4.01
limetorrents: 4.02
piratebay: 2.20
rarbg: 2.11
torlock: 2.1

View File

@ -1,4 +1,4 @@
#VERSION: 4.01
#VERSION: 4.02
# AUTHORS: Lima66
# CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
@ -6,9 +6,11 @@ import re
try:
# python3
from html.parser import HTMLParser
from urllib.parse import quote
except ImportError:
# python2
from HTMLParser import HTMLParser
from urllib import quote
# qBt
from novaprinter import prettyPrinter
@ -74,8 +76,9 @@ class limetorrents(object):
self.current_item["engine_url"] = self.url
self.item_name = "name"
elif link.endswith(".html"):
self.current_item["link"] = self.url + link
self.current_item["desc_link"] = self.url + link
safe_link = quote(self.url + link, safe='/:')
self.current_item["link"] = safe_link
self.current_item["desc_link"] = safe_link
def handle_data(self, data):
if self.inside_tr and self.item_name:

View File

@ -4,7 +4,7 @@ eztv: 1.10
jackett: 3.02
leetx: 2.00
legittorrents: 2.03
limetorrents: 4.01
limetorrents: 4.02
piratebay: 2.20
rarbg: 2.11
torlock: 2.1