Skip to content

Commit 59d606f

Browse files
committed
https
1 parent 380351a commit 59d606f

File tree

17 files changed

+55
-55
lines changed

17 files changed

+55
-55
lines changed

create_ipk.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ P=${D}/ipkg.tmp.$$
88
B=${D}/ipkg.build.$$
99
DP=${D}/ipkg.deps
1010

11-
P26="http://www.python.org/ftp/python/2.6/Python-2.6.tgz"
12-
P27="http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz"
11+
P26="https://www.python.org/ftp/python/2.6/Python-2.6.tgz"
12+
P27="https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz"
1313

1414
pushd ${D} &> /dev/null
1515

locale/cs.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -1024,17 +1024,17 @@ msgstr "Heslo"
10241024
#~ msgid "Listings"
10251025
#~ msgstr "Stránkování"
10261026

1027-
#~ msgid "Plugin to play TV video archive http://www.b-tv.cz"
1028-
#~ msgstr "Plugin pro přehrávání videí z archívu http://www.b-tv.cz"
1027+
#~ msgid "Plugin to play TV video archive https://www.b-tv.cz"
1028+
#~ msgstr "Plugin pro přehrávání videí z archívu https://www.b-tv.cz"
10291029

10301030
#~ msgid "Plugin to play TV video archive Huste.tv"
10311031
#~ msgstr "Plugin pro přehrávání videí z archívu Huste.tv"
10321032

10331033
#~ msgid "Plugin to play TV video archive Metropol.cz"
10341034
#~ msgstr "Plugin pro přehrávání videí z archívu Metropol.cz"
10351035

1036-
#~ msgid "Plugin to play TV video archive http://www.muvi.cz"
1037-
#~ msgstr "Plugin pro přehrávání videí z archívu http://www.muvi.cz"
1036+
#~ msgid "Plugin to play TV video archive https://www.muvi.cz"
1037+
#~ msgstr "Plugin pro přehrávání videí z archívu https://www.muvi.cz"
10381038

10391039
#~ msgid "Plugin to play TV video archive iprima.cz/videoarchiv"
10401040
#~ msgstr "Plugin pro přehrávání videí z archívu iprima.cz/videoarchív"

plugin/seekers/Edna/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def lng_short2flag(lang):
121121
class EdnaClient(object):
122122

123123
def __init__(self):
124-
self.server_url = "http://www.edna.cz"
124+
self.server_url = "https://www.edna.cz"
125125

126126
def search_show(self, title):
127127
enc_title = urlencode({"q": title})

plugin/seekers/Itasa/service.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
from ..utilities import log
1212

1313

14-
main_url = "http://www.italiansubs.net/"
14+
main_url = "https://www.italiansubs.net/"
1515

1616
#====================================================================================================================
1717
# Regular expression patterns
1818
#====================================================================================================================
1919

2020
#<input type="hidden" name="return" value="aHR0cDovL3d3dy5pdGFsaWFuc3Vicy5uZXQv" /><input type="hidden" name="c10b48443ee5730c9b5a0927736bd09f" value="1" />
2121
unique_pattern = '<input type="hidden" name="return" value="([^\n\r\t ]+?)" /><input type="hidden" name="([^\n\r\t ]+?)" value="([^\n\r\t ]+?)" />'
22-
#<a href="http://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1170"> Castle</a>
23-
show_pattern = '<a href="http://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+&amp;func=select&amp;id=[^\n\r\t ]+?)"> %s</a>'
24-
#href="http://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1171"> Stagione 1</a>
25-
season_pattern = '<a href="http://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=select&amp;id=[^\n\r\t ]+?)"> Stagione %s</a>'
26-
#<img src='http://www.italiansubs.net/components/com_remository/images/folder_icons/category.gif' width=20 height=20><a name="1172"><a href="http://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1172"> 720p</a>
27-
category_pattern = '<img src=\'http://www\.italiansubs\.net/components/com_remository/images/folder_icons/category\.gif\' width=20 height=20><a name="[^\n\r\t ]+?"><a href="http://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=select&amp;id=[^\n\r\t ]+?)"> ([^\n\r\t]+?)</a>'
28-
#<a href="http://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=fileinfo&amp;id=7348">Dexter 3x02</a>
29-
subtitle_pattern = '<a href="http://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=fileinfo&amp;id=([^\n\r\t ]+?))">(%s %sx%02d.*?)</a>'
30-
#<a href='http://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=download&amp;id=7228&amp;chk=5635630f675375afbdd6eec317d8d688&amp;no_html=1'>
31-
subtitle_download_pattern = '<a href=\'http://www\.italiansubs\.net/(index\.php\?option=com_remository&amp;Itemid=\d+?&amp;func=download&amp;id=%s&amp;chk=[^\n\r\t ]+?&amp;no_html=1\')>'
22+
#<a href="https://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1170"> Castle</a>
23+
show_pattern = '<a href="https://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+&amp;func=select&amp;id=[^\n\r\t ]+?)"> %s</a>'
24+
#href="https://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1171"> Stagione 1</a>
25+
season_pattern = '<a href="https://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=select&amp;id=[^\n\r\t ]+?)"> Stagione %s</a>'
26+
#<img src='https://www.italiansubs.net/components/com_remository/images/folder_icons/category.gif' width=20 height=20><a name="1172"><a href="https://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=select&amp;id=1172"> 720p</a>
27+
category_pattern = '<img src=\'https://www\.italiansubs\.net/components/com_remository/images/folder_icons/category\.gif\' width=20 height=20><a name="[^\n\r\t ]+?"><a href="https://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=select&amp;id=[^\n\r\t ]+?)"> ([^\n\r\t]+?)</a>'
28+
#<a href="https://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=fileinfo&amp;id=7348">Dexter 3x02</a>
29+
subtitle_pattern = '<a href="https://www\.italiansubs\.net/(index.php\?option=com_remository&amp;Itemid=\d+?&amp;func=fileinfo&amp;id=([^\n\r\t ]+?))">(%s %sx%02d.*?)</a>'
30+
#<a href='https://www.italiansubs.net/index.php?option=com_remository&amp;Itemid=6&amp;func=download&amp;id=7228&amp;chk=5635630f675375afbdd6eec317d8d688&amp;no_html=1'>
31+
subtitle_download_pattern = '<a href=\'https://www\.italiansubs\.net/(index\.php\?option=com_remository&amp;Itemid=\d+?&amp;func=download&amp;id=%s&amp;chk=[^\n\r\t ]+?&amp;no_html=1\')>'
3232

3333

3434
#====================================================================================================================

plugin/seekers/Moviesubtitles/service.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
'Upgrade-Insecure-Requests': '1',
2525
'Content-Type': 'application/x-www-form-urlencoded',
2626
'Host': 'moviesubtitles.com',
27-
'Referer': 'http://www.moviesubtitles.org',
27+
'Referer': 'https://www.moviesubtitles.org',
2828
'Upgrade-Insecure-Requests': '1',
2929
'Connection': 'keep-alive',
3030
'Accept-Encoding': 'gzip'} # , deflate'}
3131

3232
s = requests.Session()
3333

3434

35-
main_url = "http://www.moviesubtitles.org"
35+
main_url = "https://www.moviesubtitles.org"
3636
debug_pretext = "moviesubtitles.org"
3737

3838

@@ -61,7 +61,7 @@ def get_url(url, referer=None):
6161
def getSearchTitle(title, year=None):
6262
title = title.strip()
6363
year = str(year)
64-
url = "http://www.moviesubtitles.org/search.php"
64+
url = "https://www.moviesubtitles.org/search.php"
6565
params = ({'q': title, 'submit': 'Search'})
6666
data = s.post(url, data=params, headers=HDR, verify=False, allow_redirects=True).text
6767
data = data.replace("\n", "").replace("(", "").replace(")", "")
@@ -79,18 +79,18 @@ def getSearchTitle(title, year=None):
7979
print(("yearxx", year))
8080
if year is None:
8181
if "/movie-" in href:
82-
href = 'http://www.moviesubtitles.org' + href
82+
href = 'https://www.moviesubtitles.org' + href
8383
return href
8484
if year in blocks:
8585
regx = '.*<a href="(.*?)">' + title + ' ' + year + '</a>\s?'
8686
href = re.findall(regx, blocks, re.M | re.I)[0]
8787
print("hrefi", href)
8888
if "/movie-" in href:
89-
href = 'http://www.moviesubtitles.org' + href
89+
href = 'https://www.moviesubtitles.org' + href
9090
return href
9191
except:
9292
break
93-
return 'http://www.moviesubtitles.org' + href
93+
return 'https://www.moviesubtitles.org' + href
9494

9595

9696
def get_rating(downloads):
@@ -148,7 +148,7 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
148148
print(filename)
149149
id = subtitles_list[pos]["id"]
150150
id = id.replace("subtitle", "download")
151-
downloadlink = 'http://www.moviesubtitles.org%s' % (id)
151+
downloadlink = 'https://www.moviesubtitles.org%s' % (id)
152152
#downloadlink_pattern = '<a id="download_'+lang+'" onclick=.+?href=\"(.+?)\" class="green-link">Download</a>'
153153
#print(downloadlink_pattern)
154154
if downloadlink:

plugin/seekers/Moviesubtitles2/service.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
'Upgrade-Insecure-Requests': '1',
2626
'Content-Type': 'application/x-www-form-urlencoded',
2727
'Host': 'www.moviesubtitles.net',
28-
'Referer': 'http://www.moviesubtitles.net/search.php',
28+
'Referer': 'https://www.moviesubtitles.net/search.php',
2929
'Upgrade-Insecure-Requests': '1',
3030
'Connection': 'keep-alive',
3131
'Accept-Encoding': 'gzip'} # , deflate'}
3232

3333
s = requests.Session()
3434

3535

36-
main_url = "http://www.moviesubtitles.net"
37-
main_url2 = "http://www.moviesubtitles.net/subtitles-download"
36+
main_url = "https://www.moviesubtitles.net"
37+
main_url2 = "https://www.moviesubtitles.net/subtitles-download"
3838
debug_pretext = "moviesubtitles.net"
3939

4040

@@ -129,7 +129,7 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
129129
except:
130130
pass
131131
print("hash:", hash)
132-
downloadlink = 'http://www.moviesubtitles.net/%s' % (hash)
132+
downloadlink = 'https://www.moviesubtitles.net/%s' % (hash)
133133
if downloadlink:
134134
log(__name__, "%s Downloadlink: %s " % (debug_pretext, downloadlink))
135135
viewstate = 0
@@ -191,7 +191,7 @@ def prepare_search_string(s):
191191

192192

193193
def get_subtitles_list(title, year, languageshort, languagelong, subtitles_list):
194-
url = "http://www.moviesubtitles.net/search.php?searchString=%s&start=1" % quote_plus(title)
194+
url = "https://www.moviesubtitles.net/search.php?searchString=%s&start=1" % quote_plus(title)
195195
dst = languageshort.lower()
196196
try:
197197
log(__name__, "%s Getting url: %s" % (debug_pretext, url))

plugin/seekers/Novalermora/service.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
5959
'Content-Type': 'text/html; charset=UTF-8',
6060
'Host': 'subs.ath.cx',
61-
'Referer': 'http://subs.ath.cx',
61+
'Referer': 'https://subs.ath.cx',
6262
'Upgrade-Insecure-Requests': '1',
6363
'Connection': 'keep-alive',
6464
'Accept-Encoding': 'gzip, deflate'} # , deflate'}
6565

6666
s = requests.Session()
6767

68-
main_url = "http://subs.ath.cx"
68+
main_url = "https://subs.ath.cx"
6969
debug_pretext = "subs.ath.cx"
7070

7171

@@ -128,8 +128,8 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
128128
language = subtitles_list[pos]["language_name"]
129129
id = subtitles_list[pos]["id"]
130130
#id = re.compile('(.+?.+?)/').findall(id)[-1]
131-
downloadlink = 'http://subs.ath.cx/subtitles/%s' % (id)
132-
#id = 'http://www.findsubtitles.eu/getp.php?id=%s' % (id)
131+
downloadlink = 'https://subs.ath.cx/subtitles/%s' % (id)
132+
#id = 'https://www.findsubtitles.eu/getp.php?id=%s' % (id)
133133
print(downloadlink)
134134
if downloadlink:
135135
log(__name__, "%s Downloadlink: %s " % (debug_pretext, downloadlink))

plugin/seekers/Podnapisi/pn_utilities.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
__version__ = '3.9.18'
2020

2121
USER_AGENT = "%s_v%s" % (__scriptname__.replace(" ", "_"), __version__)
22-
SEARCH_URL = "http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=%s&sJ=%s&sY=%s&sTS=%s&sTE=%s&sXML=1&lang=0"
23-
SEARCH_URL_HASH = "http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=%s&sJ=%s&sY=%s&sTS=%s&sTE=%s&sMH=%s&sXML=1&lang=0"
22+
SEARCH_URL = "https://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=%s&sJ=%s&sY=%s&sTS=%s&sTE=%s&sXML=1&lang=0"
23+
SEARCH_URL_HASH = "https://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=%s&sJ=%s&sY=%s&sTS=%s&sTE=%s&sMH=%s&sXML=1&lang=0"
2424

25-
DOWNLOAD_URL = "http://www.podnapisi.net/subtitles/%s/download"
25+
DOWNLOAD_URL = "https://www.podnapisi.net/subtitles/%s/download"
2626

2727

2828
def OpensubtitlesHash(item):
@@ -101,7 +101,7 @@ def Create(self):
101101
self.connected = False
102102

103103
def Login(self):
104-
self.podserver = Server('http://ssp.podnapisi.net:8000') # NOSONAR
104+
self.podserver = Server('https://ssp.podnapisi.net:8000') # NOSONAR
105105
init = self.podserver.initiate(USER_AGENT)
106106
hash = md5()
107107
hash.update(settings_provider.getSetting("PNpass"))

plugin/seekers/SerialZone/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def lng_short2flag(lang):
133133
class SerialZoneClient(object):
134134

135135
def __init__(self):
136-
self.server_url = "http://www.serialzone.cz"
136+
self.server_url = "https://www.serialzone.cz"
137137

138138
def search_show(self, title):
139139
enc_title = urlencode({"co": title, "kde": "serialy"})

plugin/seekers/Subscene/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
299299
downloadlink_pattern = "...<a href=\"(.+?)\" rel=\"nofollow\" onclick=\"DownloadSubtitle"
300300
match = re.compile(downloadlink_pattern).findall(content)
301301
if match:
302-
downloadlink = "http://subscene.com" + match[0]
302+
downloadlink = "https://subscene.com" + match[0]
303303
log(__name__, "%s Downloadlink: %s " % (debug_pretext, downloadlink))
304304
viewstate = 0
305305
previouspage = 0

plugin/seekers/SubtitlesGR/service.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
2525
'Content-Type': 'text/html; charset=UTF-8',
2626
'Host': 'www.greeksubtitles.info',
27-
'Referer': 'http://www.greeksubtitles.info',
27+
'Referer': 'https://www.greeksubtitles.info',
2828
'Upgrade-Insecure-Requests': '1',
2929
'Connection': 'keep-alive',
3030
'Accept-Encoding': 'gzip, deflate'} # , deflate'}
3131

3232
s = requests.Session()
3333

34-
main_url2 = "http://gr.greek-subtitles.com"
35-
main_url = "http://www.subtitles.gr"
34+
main_url2 = "https://gr.greek-subtitles.com"
35+
main_url = "https://www.subtitles.gr"
3636
debug_pretext = "subtitles.gr"
3737

3838

@@ -95,8 +95,8 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
9595
language = subtitles_list[pos]["language_name"]
9696
id = subtitles_list[pos]["id"]
9797
id = re.compile('(.+?.+?)/').findall(id)[-1]
98-
downloadlink = 'http://www.greeksubtitles.info/getp.php?id=%s' % (id)
99-
#id = 'http://www.findsubtitles.eu/getp.php?id=%s' % (id)
98+
downloadlink = 'https://www.greeksubtitles.info/getp.php?id=%s' % (id)
99+
#id = 'https://www.findsubtitles.eu/getp.php?id=%s' % (id)
100100
print(downloadlink)
101101
if downloadlink:
102102
log(__name__, "%s Downloadlink: %s " % (debug_pretext, downloadlink))

plugin/seekers/Subtitlesmora/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, s
9494
id = subtitles_list[pos]["id"]
9595
#id = re.compile('(.+?.+?)/').findall(id)[-1]
9696
downloadlink = 'https://archive.org/download/mora25r/%s' % (id)
97-
#id = 'http://www.findsubtitles.eu/getp.php?id=%s' % (id)
97+
#id = 'https://www.findsubtitles.eu/getp.php?id=%s' % (id)
9898
print(downloadlink)
9999
if downloadlink:
100100
log(__name__, "%s Downloadlink: %s " % (debug_pretext, downloadlink))

plugin/seekers/Titlovi/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def search_subtitles(file_original_path, title, tvshow, year, season, episode, s
1717

1818
def download_subtitles(subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, session_id): # standard input
1919
OSDBServer()
20-
url_base = "http://en.titlovi.com/downloads/default.ashx?type=1&mediaid=%s"
20+
url_base = "https://en.titlovi.com/downloads/default.ashx?type=1&mediaid=%s"
2121
params = subtitles_list[pos]
2222
url = url_base % params["ID"]
2323
log(__name__, 'link: %s' % url)

plugin/seekers/Titlovi/ti_utilities.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def search_subtitles(self, name, tvshow, season, episode, lang, year):
6565

6666
search_string = name.replace(" ", "+")
6767

68-
search_url_base = "http://api.titlovi.com/xml_get_api.ashx?x-dev_api_id=%s&keyword=%s&language=%s&uiculture=en" % (api_key, search_string, "%s")
68+
search_url_base = "https://api.titlovi.com/xml_get_api.ashx?x-dev_api_id=%s&keyword=%s&language=%s&uiculture=en" % (api_key, search_string, "%s")
6969
subtitles = None
7070
supported_languages = ["bs", "hr", "en", "mk", "sr", "sl", "rs", "ba", "si", None]
7171

@@ -92,7 +92,7 @@ def search_subtitles(self, name, tvshow, season, episode, lang, year):
9292
log(__name__, "Unsupported lang: %s" % lang1)
9393
try:
9494
if subtitles:
95-
url_base = "http://en.titlovi.com/downloads/default.ashx?type=1&mediaid=%s"
95+
url_base = "https://en.titlovi.com/downloads/default.ashx?type=1&mediaid=%s"
9696
log(__name__, "Found subs: %s" % len(subtitles))
9797
for subtitle in subtitles:
9898
subtitle_id = 0

plugin/seekers/utilities.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def log(module, msg):
140140
ISO6392_LANGNAME = dict(map(lambda lang: (lang[3], lang[0]), LANGUAGES))
141141

142142

143-
144143
def languageTranslate(lang, lang_from, lang_to):
145144
if lang_from == 0 and lang_to == 2:
146145
if lang in LANGNAME_ISO6391:
@@ -159,6 +158,7 @@ def languageTranslate(lang, lang_from, lang_to):
159158
if lang == x[lang_from]:
160159
return x[lang_to]
161160

161+
162162
def allLang():
163163
return ["en",
164164
"fr",
@@ -374,7 +374,7 @@ def getFileSize(filepath):
374374
return os.path.getsize(filepath)
375375
except Exception:
376376
return None
377-
if filepath.startswith('http://'):
377+
if filepath.startswith('http://') or filepath.startswith('https://'):
378378
try:
379379
resp = urlopen(HeadRequest(filepath))
380380
return int(resp.info().get('Content-Length'))
@@ -385,7 +385,7 @@ def getFileSize(filepath):
385385
locals()['resp'].close()
386386
return None
387387

388-
# http://www.garykessler.net/library/file_sigs.html
388+
# https://www.garykessler.net/library/file_sigs.html
389389

390390

391391
def getCompressedFileType(filepath):

plugin/subtitles.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def debug(text, *args):
109109
# libraries in %PYTHON_PATH%/encodings/ (ie. iso-8859-2 requires iso_8859_2.searchsubs library)
110110

111111
# to choose encodings for region you want, visit:
112-
# http://docs.python.org/release/2.4.4/lib/standard-encodings.html
112+
# https://docs.python.org/release/2.4.4/lib/standard-encodings.html
113113

114114
# Common encodings for all languages
115115
ALL_LANGUAGES_ENCODINGS = ['utf-8', 'utf-16']
@@ -3056,7 +3056,7 @@ def _processResult(self, data):
30563056

30573057
class OpenSubtitlesSuggestions(Suggestions):
30583058
def _getSuggestions(self, queryString):
3059-
query = "http://www.opensubtitles.org/libs/suggest.php?format=json2&SubLanguageID=null&MovieName=" + quote(queryString)
3059+
query = "https://www.opensubtitles.org/libs/suggest.php?format=json2&SubLanguageID=null&MovieName=" + quote(queryString)
30603060
query = query.encode("UTF-8", "strict")
30613061
return getPage(query, timeout=6)
30623062

test/test_processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_invalid_path_local(self):
6262
self.assertRaises(LoadError, self.subsloader.load, 'dsadsa')
6363

6464
def test_invalid_path_remote(self):
65-
self.assertRaises(LoadError, self.subsloader.load, 'http://dsakldmskla.srt')
65+
self.assertRaises(LoadError, self.subsloader.load, 'https://dsakldmskla.srt')
6666

6767
def test_invalid_encoding(self):
6868
self.subsloader.change_encodings(['utf-8'])

0 commit comments

Comments
 (0)