The branch, frodo has been updated
       via  d221f74db10351e4a57c7c33f04f565e9d19bb9b (commit)
       via  ca7068cd28ea8c4128a5578f1feb1e16a7ae31f7 (commit)
      from  c8cf950c88ddec70ae69b9124d47f64774c54057 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=d221f74db10351e4a57c7c33f04f565e9d19bb9b

commit d221f74db10351e4a57c7c33f04f565e9d19bb9b
Author: sphere <sph...@dersphere.de>
Date:   Mon Mar 17 08:47:09 2014 +0100

    [plugin.video.jworg] updated to version 0.4.2

diff --git a/plugin.video.jworg/addon.xml b/plugin.video.jworg/addon.xml
index 54a0a29..f85dd97 100644
--- a/plugin.video.jworg/addon.xml
+++ b/plugin.video.jworg/addon.xml
@@ -2,7 +2,7 @@
 <addon 
     id="plugin.video.jworg" 
     name="Jw.org audio/video browser" 
-    version="0.4.1" 
+    version="0.4.2" 
     provider-name="Realtebo">
     <requires>
         <import addon="xbmc.python" version="2.1.0"/>
diff --git a/plugin.video.jworg/changelog.txt b/plugin.video.jworg/changelog.txt
index 9754558..8667da7 100644
--- a/plugin.video.jworg/changelog.txt
+++ b/plugin.video.jworg/changelog.txt
@@ -1,3 +1,9 @@
+0.4.2
+-----
+
+Fix:
++ Now preference set about resolution is followed even for video in sign 
languages
+
 0.4.1
 -----
 
diff --git a/plugin.video.jworg/video/jw_sign.py 
b/plugin.video.jworg/video/jw_sign.py
index 4721f56..a4d1955 100644
--- a/plugin.video.jworg/video/jw_sign.py
+++ b/plugin.video.jworg/video/jw_sign.py
@@ -5,6 +5,7 @@ SIGN LANGUAGE VIDEO RELATED FUNCTIONS
 
 import xbmcplugin
 import xbmcgui
+import xbmc
 
 from BeautifulSoup import BeautifulSoup 
 import urllib
@@ -262,6 +263,8 @@ def showVideoCategorySpecificRow(category_url, thumb, 
row_index) :
        if first_cell_class == "calign":
                start_cell = 3
 
+       video_dict = {}
+
        cell_index = -1
        for cell in row_cells :
                cell_index = cell_index + 1
@@ -277,6 +280,8 @@ def showVideoCategorySpecificRow(category_url, thumb, 
row_index) :
                        video_src               = cell.find("a").get("href")
                        video_quality   = 
cell.find("a").contents[0].encode("utf-8")
 
+                       video_dict [ video_quality ] = video_src
+
                        listItem = xbmcgui.ListItem(
                                label                   = "[" + video_quality + 
"] - " + article_title,
                                thumbnailImage  = thumb
@@ -295,6 +300,34 @@ def showVideoCategorySpecificRow(category_url, thumb, 
row_index) :
                                isFolder        = False 
                        ) 
 
+       # looking for choosen resolution or first available resolution unde it
+       max_resolution  = xbmcplugin.getSetting(jw_config.plugin_pid, 
"max_resolution")
+
+       if max_resolution > 0 :
+
+               max_resolution_string = max_resolution + "p"
+
+               keys = sorted(list(video_dict.keys()), reverse=True)
+               for key in keys :
+                       if (key <= max_resolution_string )  :
+                               listItem = xbmcgui.ListItem(
+                                       label                   =  article_title
+                               )
+                               listItem.setInfo(
+                                       type            = 'Video', 
+                                       infoLabels      = {'Title': 
article_title}
+                               )
+
+                               url_to_play = video_dict[key]
+
+                               xbmc.Player().play(item=url_to_play, 
listitem=listItem)
+
+                               return;
+
+
+       # this will be executed only if no available res found
+       # this could happen if not preference setted, or if 
+       # for example, selected 240p and only 360p availabe.
        xbmcplugin.endOfDirectory(handle=jw_config.plugin_pid)          
 
 

http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=ca7068cd28ea8c4128a5578f1feb1e16a7ae31f7


-----------------------------------------------------------------------

Summary of changes:
 .../LICENSE.txt                                    |    0
 plugin.audio.deejayIt.reloaded/README.md           |    8 ++
 plugin.audio.deejayIt.reloaded/addon.xml           |   24 ++++++
 plugin.audio.deejayIt.reloaded/changelog.txt       |    2 +
 plugin.audio.deejayIt.reloaded/default.py          |   78 ++++++++++++++++++
 plugin.audio.deejayIt.reloaded/fanart.jpg          |  Bin 0 -> 82380 bytes
 plugin.audio.deejayIt.reloaded/icon.png            |  Bin 0 -> 38145 bytes
 .../resources/__init__.py                          |    0
 .../resources/language/English/strings.xml         |    7 ++
 .../resources/language/Italian/strings.xml         |    7 ++
 .../resources/lib}/__init__.py                     |    0
 .../resources/lib/deejayItParser.py                |   86 ++++++++++++++++++++
 plugin.video.jworg/addon.xml                       |    2 +-
 plugin.video.jworg/changelog.txt                   |    6 ++
 plugin.video.jworg/video/jw_sign.py                |   33 ++++++++
 15 files changed, 252 insertions(+), 1 deletions(-)
 copy {plugin.audio.dradio => plugin.audio.deejayIt.reloaded}/LICENSE.txt (100%)
 create mode 100644 plugin.audio.deejayIt.reloaded/README.md
 create mode 100644 plugin.audio.deejayIt.reloaded/addon.xml
 create mode 100644 plugin.audio.deejayIt.reloaded/changelog.txt
 create mode 100644 plugin.audio.deejayIt.reloaded/default.py
 create mode 100644 plugin.audio.deejayIt.reloaded/fanart.jpg
 create mode 100644 plugin.audio.deejayIt.reloaded/icon.png
 copy {plugin.audio.abcradionational => 
plugin.audio.deejayIt.reloaded}/resources/__init__.py (100%)
 create mode 100644 
plugin.audio.deejayIt.reloaded/resources/language/English/strings.xml
 create mode 100644 
plugin.audio.deejayIt.reloaded/resources/language/Italian/strings.xml
 copy {plugin.audio.abcradionational/resources => 
plugin.audio.deejayIt.reloaded/resources/lib}/__init__.py (100%)
 create mode 100644 
plugin.audio.deejayIt.reloaded/resources/lib/deejayItParser.py


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Xbmc-addons mailing list
Xbmc-addons@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to