The branch, frodo has been updated
via a8b97a95ccd12ccc6d0bdac0a76587dad1e9dc8a (commit)
from df03805a74ef7d4d3659a4988a0dc4050cfa4aa8 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=a8b97a95ccd12ccc6d0bdac0a76587dad1e9dc8a
commit a8b97a95ccd12ccc6d0bdac0a76587dad1e9dc8a
Author: beenje <[email protected]>
Date: Thu Oct 31 21:27:00 2013 +0100
[plugin.video.vgtv] updated to version 2.0.8
diff --git a/plugin.video.vgtv/addon.py b/plugin.video.vgtv/addon.py
index 72e7459..f6cab4e 100644
--- a/plugin.video.vgtv/addon.py
+++ b/plugin.video.vgtv/addon.py
@@ -21,7 +21,6 @@ from resources.lib.api import VgtvApi
from xbmcswift2 import ListItem
from xbmcswift2 import Plugin
from xbmcswift2 import xbmcgui
-from xbmcswift2 import actions
STRINGS = {
'plugin_name': 30000,
diff --git a/plugin.video.vgtv/addon.xml b/plugin.video.vgtv/addon.xml
old mode 100644
new mode 100755
index 4309bd5..2c47c8e
--- a/plugin.video.vgtv/addon.xml
+++ b/plugin.video.vgtv/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.vgtv" name="VGTV" version="2.0.7" provider-name="Espen
Hovlandsdal">
+<addon id="plugin.video.vgtv" name="VGTV" version="2.0.8" provider-name="Espen
Hovlandsdal">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="1.1.1"/>
diff --git a/plugin.video.vgtv/changelog.txt b/plugin.video.vgtv/changelog.txt
old mode 100644
new mode 100755
index c3a747c..55a204d
--- a/plugin.video.vgtv/changelog.txt
+++ b/plugin.video.vgtv/changelog.txt
@@ -1,3 +1,6 @@
+[B]2.0.8[/B]
+- Fixed crashing caused by protected, unplayable videos
+
[B]2.0.7[/B]
- Introduced search history functionality
- Added durations for videos
diff --git a/plugin.video.vgtv/resources/lib/api.py
b/plugin.video.vgtv/resources/lib/api.py
old mode 100644
new mode 100755
index 230340f..935bb38
--- a/plugin.video.vgtv/resources/lib/api.py
+++ b/plugin.video.vgtv/resources/lib/api.py
@@ -108,7 +108,7 @@ class VgtvApi():
'originaltitle': unescape(meta.get('title') or '???'),
'tagline': unescape(meta.get('preamble') or ''),
'aired': self.get_date(meta.get('timePublished')),
- 'duration': self.get_duration(meta.get('duration'))
+ 'duration': self.get_duration(meta.get('duration', 0))
},
'stream_info': {
'video': {
@@ -146,6 +146,9 @@ class VgtvApi():
elif 'formats' not in video:
self.plugin.log.warning('Formats not in video-response')
return None, None, None, None
+ elif 'http' not in video['formats']:
+ # Can't find any http URL, probably protected
+ return None, None, None, None
# MP4 or m3u8?
if (allow_resolve):
@@ -166,15 +169,15 @@ class VgtvApi():
format = 'mp4'
# Loop through the formats to find the best one
- for format in video['formats']['http'][format]:
+ for currentformat in video['formats']['http'][format]:
# Find the highest bitrate available
- if format['bitrate'] > highest_bitrate:
- highest_bitrate = format['bitrate']
- best_format = format
+ if currentformat['bitrate'] > highest_bitrate:
+ highest_bitrate = currentformat['bitrate']
+ best_format = currentformat
# Thumbs seem to be around ~300px in general
- if format['width'] > 310 and format['width'] < best_thumb['width']:
- best_thumb = format
+ if currentformat['width'] > 310 and currentformat['width'] <
best_thumb['width']:
+ best_thumb = currentformat
# Fall back if something failed
if best_format is None:
-----------------------------------------------------------------------
Summary of changes:
plugin.video.vgtv/addon.py | 1 -
plugin.video.vgtv/addon.xml | 2 +-
plugin.video.vgtv/changelog.txt | 3 +++
plugin.video.vgtv/resources/lib/api.py | 17 ++++++++++-------
4 files changed, 14 insertions(+), 9 deletions(-)
mode change 100644 => 100755 plugin.video.vgtv/addon.xml
mode change 100644 => 100755 plugin.video.vgtv/changelog.txt
mode change 100644 => 100755 plugin.video.vgtv/resources/lib/api.py
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons