Skip to content

Commit

Permalink
fix subtitle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
catchup4kodi committed Mar 25, 2018
1 parent 3a39735 commit b71d1ea
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugin.video.itv/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.itv" name="ITV" version="2.4.5" provider-name="LittleWiz">
<addon id="plugin.video.itv" name="ITV" version="2.4.6" provider-name="LittleWiz">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
Expand Down
16 changes: 11 additions & 5 deletions plugin.video.itv/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,21 @@ def HLS(url,iconimage):

BEG = link['Playlist']['Video']['Base']
bb= link['Playlist']['Video']['MediaFiles']
SUBLINK = link['Playlist']['Video']['Subtitles'][0]['Href']

try:
SUBLINK = link['Playlist']['Video']['Subtitles'][0]['Href']
subtitles_exist = 1
except:
subtitles_exist = 0
there_are_subtitles=0

for k in bb:
END = bb[0]['Href']

if __settings__.getSetting('subtitles_control') == 'true':
subtitles_file = download_subtitles(SUBLINK, '')
print "Subtitles at ", subtitles_file
there_are_subtitles=1
if subtitles_exist == 1:
subtitles_file = download_subtitles(SUBLINK, '')
print "Subtitles at ", subtitles_file
there_are_subtitles=1

STREAM = BEG+END

Expand Down
2 changes: 1 addition & 1 deletion zips/addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</extension>
</addon>

<addon id="plugin.video.itv" name="ITV" version="2.4.5" provider-name="LittleWiz">
<addon id="plugin.video.itv" name="ITV" version="2.4.6" provider-name="LittleWiz">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
Expand Down
2 changes: 1 addition & 1 deletion zips/addons.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b5476d972b869a7608937f758eea507e
a0afdfb62e8cf629ec224dd161320ccc
2 changes: 1 addition & 1 deletion zips/plugin.video.itv/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.itv" name="ITV" version="2.4.5" provider-name="LittleWiz">
<addon id="plugin.video.itv" name="ITV" version="2.4.6" provider-name="LittleWiz">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
Expand Down
Binary file added zips/plugin.video.itv/plugin.video.itv-2.4.6.zip
Binary file not shown.

0 comments on commit b71d1ea

Please sign in to comment.