Skip to content

Commit ab72ec3

Browse files
committed
[script.xbmc.subtitles] -v 2.5.16
- fix: Subscenter service version 1.3 - Fixed null values in website dictionary, thx orivar - fix: Subdivix, thx Enric Godes
1 parent 0d7f267 commit ab72ec3

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

script.xbmc.subtitles/addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="script.xbmc.subtitles"
33
name="XBMC Subtitles"
4-
version="2.5.15"
4+
version="2.5.16"
55
provider-name="Amet, mr_blobby">
66
<requires>
77
<import addon="xbmc.python" version="1.0"/>

script.xbmc.subtitles/changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.5.16
2+
- fix: Subscenter service version 1.3 - Fixed null values in website dictionary, thx orivar
3+
- fix: Subdivix, thx Enric Godes
4+
15
2.5.15
26
- fixed: Subcenter, thx orivar
37

script.xbmc.subtitles/resources/lib/services/Subdivx/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
def getallsubs(searchstring, languageshort, languagelong, file_original_path, subtitles_list):
3737
page = 1
3838
if languageshort == "es":
39-
url = main_url + "index.php?accion=5&masdesc=&oxdown=1&pg=" + str(page) + "&buscar=" + urllib.quote_plus(searchstring)
39+
url = main_url + "index.php?accion=5&masdesc=&oxfecha=2&pg=" + str(page) + "&buscar=" + urllib.quote_plus(searchstring)
4040

4141
content = geturl(url)
4242
log( __name__ ,"%s Getting '%s' subs ..." % (debug_pretext, languageshort))
@@ -61,7 +61,7 @@ def getallsubs(searchstring, languageshort, languagelong, file_original_path, su
6161
log( __name__ ,"%s Subtitles found: %s (id = %s)" % (debug_pretext, filename, id))
6262
subtitles_list.append({'rating': str(downloads), 'no_files': no_files, 'filename': filename, 'sync': sync, 'id' : id, 'server' : server, 'language_flag': 'flags/' + languageshort + '.gif', 'language_name': languagelong})
6363
page = page + 1
64-
url = main_url + "index.php?accion=5&masdesc=&oxdown=1&pg=" + str(page) + "&buscar=" + urllib.quote_plus(searchstring)
64+
url = main_url + "index.php?accion=5&masdesc=&oxfecha=2&pg=" + str(page) + "&buscar=" + urllib.quote_plus(searchstring)
6565
content = geturl(url)
6666

6767
# Bubble sort, to put syncs on top

script.xbmc.subtitles/resources/lib/services/Subscenter/service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
#===============================================================================
44
# Subscenter.org subtitles service.
5-
# Version: 1.2
5+
# Version: 1.3
66
#
77
# Change log:
88
# 1.1 - Fixed downloading of non-Hebrew subtitles.
99
# 1.2 - Added key field for download URL
10+
# 1.3 - Fixed null values in website dictionary (changed to None)
1011
#
1112
# Created by: Ori Varon
1213
#===============================================================================
@@ -76,6 +77,8 @@ def getAllSubtitles(subtitlePageID,languageList,subtitlesList):
7677
toExec = "foundSubtitles = "+subtitlePage[tempStart+len("subtitles_groups = "):tempEnd]
7778
# Remove junk at the end of the line
7879
toExec = toExec[:toExec.rfind("}")+1]
80+
# Replace "null" with "None"
81+
toExec = toExec.replace("null","None")
7982
exec(toExec)
8083
log( __name__ ,"Built webpage dictionary")
8184
for language in foundSubtitles.keys():

0 commit comments

Comments
 (0)