The branch, eden has been updated
via 20e1890b6ab3d85935fc46da3432c5ee997f38ea (commit)
from f7301ae61954abfd8b3ce0a6c013ed76755277b8 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=20e1890b6ab3d85935fc46da3432c5ee997f38ea
commit 20e1890b6ab3d85935fc46da3432c5ee997f38ea
Author: spiff <[email protected]>
Date: Sat Jun 23 07:34:06 2012 +0200
[plugin.video.drnu] updated to version 2.1.5
diff --git a/plugin.video.drnu/addon.py b/plugin.video.drnu/addon.py
index 3265ec3..a67ac55 100644
--- a/plugin.video.drnu/addon.py
+++ b/plugin.video.drnu/addon.py
@@ -75,6 +75,10 @@ class NuAddon(object):
item = xbmcgui.ListItem(ADDON.getLocalizedString(30012),
iconImage=os.path.join(ADDON.getAddonInfo('path'), 'resources', 'icons',
'tag.png'))
item.setProperty('Fanart_Image', fanartImage)
items.append((PATH + '?show=programSeriesLabels', item, True))
+ # Premiere
+ item = xbmcgui.ListItem(ADDON.getLocalizedString(30025),
iconImage=os.path.join(ADDON.getAddonInfo('path'), 'resources', 'icons',
'new.png'))
+ item.setProperty('Fanart_Image', fanartImage)
+ items.append((PATH + '?show=premiere', item, True))
# Latest
item = xbmcgui.ListItem(ADDON.getLocalizedString(30001),
iconImage=os.path.join(ADDON.getAddonInfo('path'), 'resources', 'icons',
'new.png'))
item.setProperty('Fanart_Image', fanartImage)
@@ -129,6 +133,9 @@ class NuAddon(object):
def showLastChanceVideos(self):
self.listVideos(self.api.getLastChanceVideos())
+ def showPremiereVideos(self):
+ self.listVideos(self.api.getPremiereVideos())
+
def showFavorites(self):
self.showProgramSeries(self.favorites, False)
@@ -503,6 +510,8 @@ if __name__ == '__main__':
nuAddon.showHighlightVideos()
elif PARAMS['show'][0] == 'mostViewed':
nuAddon.showMostViewedVideos()
+ elif PARAMS['show'][0] == 'premiere':
+ nuAddon.showPremiereVideos()
elif PARAMS['show'][0] == 'lastChance':
nuAddon.showLastChanceVideos()
elif PARAMS['show'][0] == 'search':
diff --git a/plugin.video.drnu/addon.xml b/plugin.video.drnu/addon.xml
index 0c07124..cd6c46a 100644
--- a/plugin.video.drnu/addon.xml
+++ b/plugin.video.drnu/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<addon id="plugin.video.drnu" version="2.1.4" name="DR NU Player"
provider-name="twinther [[email protected]]">
+<addon id="plugin.video.drnu" version="2.1.5" name="DR NU Player"
provider-name="twinther [[email protected]]">
<requires>
<import addon="xbmc.python" version="2.0"/>
<import addon="script.module.simplejson" version="2.0.10"/>
diff --git a/plugin.video.drnu/changelog.txt b/plugin.video.drnu/changelog.txt
index 482f9fa..befbf03 100644
--- a/plugin.video.drnu/changelog.txt
+++ b/plugin.video.drnu/changelog.txt
@@ -1,3 +1,7 @@
+[B]Version 2.1.5 - 2012-06-22[/B]
+- Changed search results limit to 100 items
+- Added Premiere videos
+
[B]Version 2.1.4 - 2012-06-03[/B]
- Split up Programs A-Z menu into individual letters
- Handle errors when local filesystem is readonly or out of disk space
diff --git a/plugin.video.drnu/nuapi.py b/plugin.video.drnu/nuapi.py
index 03ad14a..a58696d 100644
--- a/plugin.video.drnu/nuapi.py
+++ b/plugin.video.drnu/nuapi.py
@@ -96,6 +96,9 @@ class DrNuApi(object):
def getHighlightVideos(self):
return self._call_api('videos/highlight', 'highlight.json') or list()
+ def getPremiereVideos(self):
+ return self._call_api('videos/premiere', 'premiere.json') or list()
+
def getProgramSeriesVideos(self, programSeriesSlug):
return self._call_api('programseries/%s/videos' % programSeriesSlug,
'programseries-%s.json' % programSeriesSlug) or list()
@@ -107,10 +110,10 @@ class DrNuApi(object):
else:
return response
- def search(self, term):
+ def search(self, term, limit = 100):
if not term:
return list()
- return self._call_api('search/%s' % urllib.quote(term)) or list()
+ return self._call_api('search/%s?limit=%d' % (urllib.quote(term),
limit)) or list()
def getProgramSeriesImageUrl(self, programSlug, width, height = None):
if height is None:
diff --git a/plugin.video.drnu/resources/language/Danish/strings.xml
b/plugin.video.drnu/resources/language/Danish/strings.xml
index 0c74fe1..db8a35a 100644
--- a/plugin.video.drnu/resources/language/Danish/strings.xml
+++ b/plugin.video.drnu/resources/language/Danish/strings.xml
@@ -25,6 +25,7 @@
<string id="30022">Alle programmer</string>
<string id="30023">Tildel brugerdefineret ikon</string>
<string id="30024">Fjern brugerdefineret ikon</string>
+ <string id="30025">Forpremiere</string>
<string id="30100">Videoen er ikke tilgængelig</string>
<string id="30101">DR har slettet den videofil du forsøger at
afspille,</string>
diff --git a/plugin.video.drnu/resources/language/English/strings.xml
b/plugin.video.drnu/resources/language/English/strings.xml
index 8ce2c46..c336fcf 100644
--- a/plugin.video.drnu/resources/language/English/strings.xml
+++ b/plugin.video.drnu/resources/language/English/strings.xml
@@ -25,6 +25,7 @@
<string id="30022">All programs</string>
<string id="30023">Choose custom icon</string>
<string id="30024">Remove custom icon</string>
+ <string id="30025">Premiere videos</string>
<string id="30100">Video is not available</string>
<string id="30101">DR has deleted the video file you want to
watch,</string>
-----------------------------------------------------------------------
Summary of changes:
plugin.video.drnu/addon.py | 9 +++++++++
plugin.video.drnu/addon.xml | 2 +-
plugin.video.drnu/changelog.txt | 4 ++++
plugin.video.drnu/nuapi.py | 7 +++++--
.../resources/language/Danish/strings.xml | 1 +
.../resources/language/English/strings.xml | 1 +
6 files changed, 21 insertions(+), 3 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons