The branch, gotham has been updated
       via  42b1f6aed42a75df181bf2c8691ac38e32152f21 (commit)
      from  216d7b570797c51398047aa0bcac448416417159 (commit)

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

commit 42b1f6aed42a75df181bf2c8691ac38e32152f21
Author: sphere <[email protected]>
Date:   Mon Jun 23 09:01:31 2014 +0200

    [plugin.video.svtplay] updated to version 4.0.3

diff --git a/plugin.video.svtplay/README.md b/plugin.video.svtplay/README.md
index 19a8bd8..37f27fc 100644
--- a/plugin.video.svtplay/README.md
+++ b/plugin.video.svtplay/README.md
@@ -21,6 +21,8 @@ Open the playlist from the plugin's top menu. Click on "Play".
 
 * (General) Show subtitles
   * Force programs to start with subtitles enabled. Subtitles can till be 
toggled on/off by using XBMC's controller shortcuts.
+* (Advanced) Display icon as fanart
+  * Uses the thumbnail as the fanart as well. The fanart is used by XBMC skins 
in different ways. However, the most common way is to have the fanart as some 
kind of background.
 * (Advanced) Don't use avc1.77.30 streams
   * Forces the addon to choose the stream that supports the highest bandwidth 
but does not use the avc1.77.30 profile.
 * (Advanced) Set bandwidth manually
diff --git a/plugin.video.svtplay/addon.xml b/plugin.video.svtplay/addon.xml
index 56ab854..6eda787 100644
--- a/plugin.video.svtplay/addon.xml
+++ b/plugin.video.svtplay/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.svtplay"
        name="SVT Play"
-       version="4.0.2"
+       version="4.0.3"
        provider-name="nilzen">
   <requires>
     <import addon="script.module.parsedom" version="1.2.0"/>
diff --git a/plugin.video.svtplay/changelog.txt 
b/plugin.video.svtplay/changelog.txt
index 2237c23..83aa2a2 100644
--- a/plugin.video.svtplay/changelog.txt
+++ b/plugin.video.svtplay/changelog.txt
@@ -1,3 +1,7 @@
+Version 4.0.3
+-------------
+- Add fanart, mirroring thumbnail
+
 Version 4.0.2
 -------------
 - Fix broken A-Ö listing
diff --git a/plugin.video.svtplay/default.py b/plugin.video.svtplay/default.py
index 711ceee..9b43b76 100644
--- a/plugin.video.svtplay/default.py
+++ b/plugin.video.svtplay/default.py
@@ -311,6 +311,8 @@ def addDirectoryItem(title, params, thumbnail = None, 
folder = True, live = Fals
 
   if info:
     li.setInfo("Video", info)
+    if "fanart" in info.keys() and helper.getSetting("showfanart"):
+      li.setArt({"fanart": info["fanart"]})
 
   xbmcplugin.addDirectoryItem(PLUGIN_HANDLE, sys.argv[0] + '?' + 
urllib.urlencode(params), li, folder)
 
diff --git a/plugin.video.svtplay/resources/language/English/strings.xml 
b/plugin.video.svtplay/resources/language/English/strings.xml
index 9686b6c..f96edc2 100644
--- a/plugin.video.svtplay/resources/language/English/strings.xml
+++ b/plugin.video.svtplay/resources/language/English/strings.xml
@@ -3,7 +3,7 @@
   <string id="30000">Programs A-Ö</string>
   <string id="30001">Categories</string>
   <string id="30002">Live broadcasts</string>
-  <string id="30003">Latest programs</string>  
+  <string id="30003">Latest programs</string>
   <string id="30004">Latest news broadcast</string>
   <string id="30005">Recommended</string>
   <string id="30006">Search</string>
@@ -35,6 +35,7 @@
   <string id="30506">Show both clips and episodes for programs</string>
   <string id="30507">Set bandwidth manually</string>
   <string id="30508">Bandwidth</string>
+  <string id="30509">Display icon as fanart</string>
   <string id="30601">General</string>
   <string id="30602">Advanced</string>
 </strings>
diff --git a/plugin.video.svtplay/resources/language/Swedish/strings.xml 
b/plugin.video.svtplay/resources/language/Swedish/strings.xml
index 5d4eee7..65f09e4 100644
--- a/plugin.video.svtplay/resources/language/Swedish/strings.xml
+++ b/plugin.video.svtplay/resources/language/Swedish/strings.xml
@@ -35,6 +35,7 @@
   <string id="30506">Visa både klipp och avsnitt för program</string>
   <string id="30507">Ställ in bandbredd manuellt</string>
   <string id="30508">Bandbredd</string>
+  <string id="30509">Visa ikon som fanart</string>
   <string id="30601">Allmänt</string>
   <string id="30602">Avancerat</string>
 </strings>
diff --git a/plugin.video.svtplay/resources/lib/helper.py 
b/plugin.video.svtplay/resources/lib/helper.py
index f63e881..902a9a7 100644
--- a/plugin.video.svtplay/resources/lib/helper.py
+++ b/plugin.video.svtplay/resources/lib/helper.py
@@ -159,6 +159,15 @@ def prepareThumb(thumbnail, baseUrl):
   thumbnail = re.sub(r"/small|medium|large|extralarge/", ""+THUMB_SIZE+"", 
thumbnail)
   return thumbnail
 
+def prepareFanart(url, baseUrl):
+  """
+  Returns a fanart image URL.
+  """
+  if not url.startswith("http://";) and baseUrl:
+    url = baseUrl + url
+  new_url = re.sub(r"/small|medium|large|extralarge/", "extralarge_imax", url)
+  return new_url
+
 
 def mp4Handler(jsonObj):
   """
diff --git a/plugin.video.svtplay/resources/lib/svt.py 
b/plugin.video.svtplay/resources/lib/svt.py
index 75f472a..a09d18e 100644
--- a/plugin.video.svtplay/resources/lib/svt.py
+++ b/plugin.video.svtplay/resources/lib/svt.py
@@ -347,6 +347,7 @@ def getArticles(section_name, url=None):
     info["plot"] = plot
     info["aired"] = helper.convertDate(aired)
     info["duration"] = helper.convertDuration(duration)
+    info["fanart"] = helper.prepareFanart(thumbnail, baseUrl=BASE_URL)
     new_article["info"] = info
     new_articles.append(new_article)
 
diff --git a/plugin.video.svtplay/resources/settings.xml 
b/plugin.video.svtplay/resources/settings.xml
index fc7648e..fa92b25 100644
--- a/plugin.video.svtplay/resources/settings.xml
+++ b/plugin.video.svtplay/resources/settings.xml
@@ -7,6 +7,7 @@
     <setting id="debug" type="bool" label="30500" default="false" />
   </category>
   <category label="30602">
+    <setting id="showfanart" type="bool" label="30509" default="false" />
     <setting id="hlsstrip" type="bool" label="30505" default="false" />
     <setting id="bwselect" type="bool" label="30507" default="false" 
enable="eq(-1,false)" />
     <setting id="bandwidth" type="select" label="30508" default="2500" 
values="300|500|900|1600|2500" enable="eq(-1,true) + eq(-2,false)" />

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

Summary of changes:
 plugin.video.svtplay/README.md                     |    2 ++
 plugin.video.svtplay/addon.xml                     |    2 +-
 plugin.video.svtplay/changelog.txt                 |    4 ++++
 plugin.video.svtplay/default.py                    |    2 ++
 .../resources/language/English/strings.xml         |    3 ++-
 .../resources/language/Swedish/strings.xml         |    1 +
 plugin.video.svtplay/resources/lib/helper.py       |    9 +++++++++
 plugin.video.svtplay/resources/lib/svt.py          |    1 +
 plugin.video.svtplay/resources/settings.xml        |    1 +
 9 files changed, 23 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to