The branch, eden has been updated
       via  c51066a4a4854cd9b312269f559875cce3f24843 (commit)
      from  81f573be012a70438842d8c11289569fbc4cf323 (commit)

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

commit c51066a4a4854cd9b312269f559875cce3f24843
Author: spiff <[email protected]>
Date:   Wed Oct 31 11:36:15 2012 +0100

    [plugin.video.tagesschau] updated to version 1.3.1

diff --git a/plugin.video.tagesschau/addon.xml 
b/plugin.video.tagesschau/addon.xml
index 4d47630..e870e6f 100644
--- a/plugin.video.tagesschau/addon.xml
+++ b/plugin.video.tagesschau/addon.xml
@@ -1,26 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <addon
-  id="plugin.video.tagesschau"
-  version="1.2.1"
-  name="Tagesschau"
-  provider-name="nevermore">
+    id="plugin.video.tagesschau"
+    version="1.3.1"
+    name="Tagesschau"
+    provider-name="nevermore">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
   </requires>
-
-    <extension point="xbmc.python.pluginsource" library="tagesschau.py">
-        <provides>video</provides>
-    </extension>
-    <extension point="xbmc.addon.metadata">
-        <platform>all</platform>
-           <summary lang="de">Tagesschau</summary>
-        <summary lang="en">Tagesschau</summary>
-           <description lang="de">
-         Die ARD-Nachrichtenmagazine' Tagesschau', 'Tagesschau in 100 
Sekunden' und 'Tagesthemen'.
-           </description>
-        <description lang="en">
-         Watch german news magazines 'Tagesschau', 'Tagesschau in 100 
Sekunden' and 'Tagesthemen'.
-           </description>
-        <disclaimer lang="en">Videos from tagesschau.de</disclaimer>
-    </extension>
+  
+  <extension point="xbmc.python.pluginsource" library="tagesschau.py">
+    <provides>video</provides>
+  </extension>
+  <extension point="xbmc.addon.metadata">
+    <language>de</language>
+    <platform>all</platform>
+    <summary lang="de">Tagesschau</summary>
+    <summary lang="en">Tagesschau</summary>
+    <description lang="de">
+      Die 'Tagesschau', 'Tagesschau in 100 Sekunden', 'Tagesthemen' und andere 
ARD Nachrichtenmagazine.
+    </description>
+    <description lang="en">
+      Watch the 'Tagesschau', 'Tagesschau in 100 Sekunden', 'Tagesthemen' and 
other ARD news magazines from Germany.
+    </description>
+    <disclaimer lang="en">Videos from tagesschau.de</disclaimer>
+  </extension>
 </addon>
diff --git a/plugin.video.tagesschau/changelog.txt 
b/plugin.video.tagesschau/changelog.txt
index a8314cb..1825d51 100644
--- a/plugin.video.tagesschau/changelog.txt
+++ b/plugin.video.tagesschau/changelog.txt
@@ -1,3 +1,11 @@
+version 1.3.1
+ * Added language tag
+
+version 1.3.0
+ * Added a "preferred quality" setting
+ * Added "tagesWEBschau" podcast
+ * Added descriptions to the videos
+
 version 1.2.0
  * release for eden-pre
 
diff --git a/plugin.video.tagesschau/tagesschau.py 
b/plugin.video.tagesschau/tagesschau.py
index 871a7bc..510e019 100644
--- a/plugin.video.tagesschau/tagesschau.py
+++ b/plugin.video.tagesschau/tagesschau.py
@@ -17,7 +17,7 @@
 
 import urllib2, datetime
 
-import xbmcplugin, xbmcgui
+import xbmcplugin, xbmcgui, xbmcaddon
 
 import parserss
 
@@ -31,6 +31,8 @@ podcast_config = {
     "tagesthemen": { "url": { "M": 
"http://www.tagesschau.de/export/video-podcast/webm/tagesthemen";,
                             "L": 
"http://www.tagesschau.de/export/video-podcast/webl/tagesthemen"; },
                      "name": "Tagesthemen" },
+    "tageswebschau": { "url": { "M": 
"http://www.tagesschau.de/export/video-podcast/webm/tageswebschau"; },
+                       "name": "tagesWEBschau" }, 
     "nachtmagazin": { "url": { "M": 
"http://www.tagesschau.de/export/video-podcast/webm/nachtmagazin";,
                                "L": 
"http://www.tagesschau.de/export/video-podcast/webl/nachtmagazin"; },
                       "name": "Nachtmagazin" },
@@ -49,15 +51,14 @@ podcast_config = {
 # ------------------------------------------------------------
 
 # -- Settings -----------------------------------------------
-# TODO: This should be configurabe in a settings dialog
+settings = xbmcaddon.Addon(id='plugin.video.tagesschau')
+quality_id = settings.getSetting("quality")
+quality = ['M', 'L'][int(quality_id)]
 
 # change order here or remove elements if you like
-podcasts = ("tagesschau", "tagesschau100", "tagesthemen", "nachtmagazin", 
+podcasts = ("tagesschau", "tagesschau100", "tagesthemen", "tageswebschau", 
"nachtmagazin", 
             "berichtausberlin", "wochenspiegel", "deppendorfswoche", 
"tagesschauvor20jahren")
 
-# Quality
-quality = "L"
-
 # Time format
 datetimeformat = "%a %d. %B %Y, %H:%M"
 dateformat = "%a %d. %B %Y"
@@ -91,10 +92,10 @@ def getName(podcast, item):
 
     return item["title"]
 
-def addLink(name, url, iconimage):
+def addLink(name, url, iconimage, description):
         ok = True
         liz = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", 
thumbnailImage=iconimage)
-        liz.setInfo(type="Video", infoLabels={ "Title": name } )
+        liz.setInfo(type="Video", infoLabels={ "Title": name, "Plot": 
description } )
         ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=url, 
listitem=liz)
         return ok
 
@@ -102,6 +103,6 @@ for podcast in podcasts:
     feed = parserss.parserss(getUrl(podcast, quality))
     if len(feed["items"]) > 0:
         item = feed["items"][0]
-        addLink(getName(podcast, item), item["media"]["url"], feed["image"])
+        addLink(getName(podcast, item), item["media"]["url"], feed["image"], 
item.get("description", ""))
 
 xbmcplugin.endOfDirectory(int(sys.argv[1]))

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

Summary of changes:
 plugin.video.tagesschau/addon.xml                  |   41 ++++++++++----------
 plugin.video.tagesschau/changelog.txt              |    8 ++++
 .../resources/language/English/strings.xml         |    2 +-
 .../resources/language/German}/strings.xml         |    3 +-
 plugin.video.tagesschau/resources/settings.xml     |    4 ++
 plugin.video.tagesschau/tagesschau.py              |   19 +++++----
 6 files changed, 45 insertions(+), 32 deletions(-)
 copy {plugin.video.collegehumor => 
plugin.video.tagesschau}/resources/language/English/strings.xml (61%)
 copy {plugin.audio.abradio.cz/resources/language/Czech => 
plugin.video.tagesschau/resources/language/German}/strings.xml (60%)
 create mode 100644 plugin.video.tagesschau/resources/settings.xml


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to