The branch, dharma has been updated
via 9fed16006938863ca5482f86c581f76580f73cee (commit)
from 189a77d40a516b79d47f2680a7c7ce9729110c16 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=9fed16006938863ca5482f86c581f76580f73cee
commit 9fed16006938863ca5482f86c581f76580f73cee
Author: spiff <[email protected]>
Date: Sun Feb 20 21:23:21 2011 +0100
[plugin.video.svtplay] updated to version 1.0.3
diff --git a/plugin.video.svtplay/addon.xml b/plugin.video.svtplay/addon.xml
index b0cbea2..308be1d 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="1.0.2"
+ version="1.0.3"
provider-name="nilzen">
<requires>
<import addon="xbmc.python" version="1.0"/>
diff --git a/plugin.video.svtplay/changelog.txt
b/plugin.video.svtplay/changelog.txt
index d06cbf2..0361c4a 100644
--- a/plugin.video.svtplay/changelog.txt
+++ b/plugin.video.svtplay/changelog.txt
@@ -1,3 +1,7 @@
+Version 1.0.3
+-------------
+- Fixed settings boolean (by kokangit & nilzen)
+
Version 1.0.2
-------------
- Added subtitle support (by kokangit)
diff --git a/plugin.video.svtplay/default.py b/plugin.video.svtplay/default.py
index b4b10c1..e0018c6 100644
--- a/plugin.video.svtplay/default.py
+++ b/plugin.video.svtplay/default.py
@@ -15,10 +15,10 @@ __language__ = __settings__.getLocalizedString
SETTINGS_HIGHEST_BITRATE = [320, 850, 1400,
2400][int(__settings__.getSetting("highest_bitrate"))]
SETTINGS_HIGHEST_BITRATE_DEBUG = [320, 850, 1400,
2400][int(__settings__.getSetting("highest_bitrate_debug"))]
SETTINGS_MAX_ITEMS_PER_PAGE = [20, 50, 100,
200][int(__settings__.getSetting("list_size"))]
-SETTINGS_DEBUG = __settings__.getSetting("debug")
+SETTINGS_DEBUG = (__settings__.getSetting("debug").lower() == "true")
SETTINGS_CONTEXT_MENU =__settings__.getSetting("context_menu")
SETTINGS_COMMAND = __settings__.getSetting("command")
-SETTINGS_SUBTITLES = __settings__.getSetting("subtitles")
+SETTINGS_SUBTITLES = (__settings__.getSetting("subtitles").lower() == "true")
TEXT_NEXT_PAGE = __language__(30200)
@@ -131,22 +131,28 @@ def video_list(ids="", url="", offset=1, list_size=0):
url = BASE_URL_VIDEO + ids
doc = load_xml(get_offset_url(url, offset))
-
for item in doc.getElementsByTagName("item"):
if list_size < SETTINGS_MAX_ITEMS_PER_PAGE:
-
media = get_media_content(item)
subtitle = get_media_subtitle(item)
thumb = get_media_thumbnail(item)
title = get_node_value(media, "title", NS_MEDIA)
description = get_node_value(item, "description")
pubDate = get_node_value(item, "pubDate")
+
# TODO: parse date/time
# TODO: add label "date" (string (%d.%m.%Y /
01.01.2009) - file date)
# TODO: add label "premiered" (string (2005-03-04))
- infoLabels = { "Title": title,
- "Plot": description }
+
+ if title is None:
+ title = "";
+
+ if description is None:
+ description = "";
+
+ infoLabels = { "Title": title.encode('utf_8'),
+ "Plot": description.encode('utf_8') }
params = { "url": media.getAttribute("url"),
"subtitle": subtitle,
-----------------------------------------------------------------------
Summary of changes:
plugin.video.svtplay/addon.xml | 2 +-
plugin.video.svtplay/changelog.txt | 4 ++++
plugin.video.svtplay/default.py | 18 ++++++++++++------
3 files changed, 17 insertions(+), 7 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons