The branch, frodo has been updated via 3f0ced5ee8cd99aab5d52221e00396ac7769e79f (commit) from 9a39eae58f70585221249afad2fa9b3b2ae1efb5 (commit)
- Log ----------------------------------------------------------------- http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=3f0ced5ee8cd99aab5d52221e00396ac7769e79f commit 3f0ced5ee8cd99aab5d52221e00396ac7769e79f Author: Martijn Kaijser <mcm.kaij...@gmail.com> Date: Sun Oct 6 11:56:32 2013 +0200 [plugin.video.mediacorp] 0.2.0 diff --git a/plugin.video.mediacorp/README.txt b/plugin.video.mediacorp/README.txt index 4644db1..affcbc2 100644 --- a/plugin.video.mediacorp/README.txt +++ b/plugin.video.mediacorp/README.txt @@ -7,3 +7,11 @@ XBMC Addon for Mediacorp TV Singapore Plays Tv catch-up for channels 5, 8 and U. Also plays videos for Channel News Asia. To display chinese titles correctly, choose Arial Font under Settings/Appearance/Skin/Font + +v0.1.1 + +Removed UNSORTED View to allow other sorts to be viewed +Set mimetype in addurl - supposed to speed things up + +v0.2.0 +version 0.2.0 added required fields in addon.xml, translatable strings separated \ No newline at end of file diff --git a/plugin.video.mediacorp/addon.xml b/plugin.video.mediacorp/addon.xml index 81e0623..104a8b2 100644 --- a/plugin.video.mediacorp/addon.xml +++ b/plugin.video.mediacorp/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="plugin.video.mediacorp" name="Mediacorp TV Singapore" - version="0.1.0" + version="0.2.0" provider-name="t1m"> <requires> <import addon="xbmc.python" version="2.1.0"/> @@ -16,5 +16,10 @@ <disclaimer lang="en">Feel free to use this script. For information visit the wiki.</disclaimer> <platform>all</platform> <language>en</language> + <license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license> + <forum>http://wiki.xbmc.org/index.php?title=Add-on:Mediacorp_TV_Singapore</forum> + <website></website> + <email></email> + <source>http://mirrors.xbmc.org/addons/frodo/plugin.video.mediacorp/</source> </extension> </addon> diff --git a/plugin.video.mediacorp/changelog.txt b/plugin.video.mediacorp/changelog.txt index c4c3a87..3f2859d 100644 --- a/plugin.video.mediacorp/changelog.txt +++ b/plugin.video.mediacorp/changelog.txt @@ -1 +1,3 @@ -Version 0.1.0 inital release \ No newline at end of file +Version 0.1.0 inital release +Version 0.1.1 cleaned up sort views, set mimetype in addurl - supposed to speed things up +version 0.2.0 added required fields in addon.xml, translatable strings separated \ No newline at end of file diff --git a/plugin.video.mediacorp/default.py b/plugin.video.mediacorp/default.py index a2667be..ec28c46 100644 --- a/plugin.video.mediacorp/default.py +++ b/plugin.video.mediacorp/default.py @@ -17,6 +17,8 @@ USER_AGENT = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/ addon = xbmcaddon.Addon('plugin.video.mediacorp') __addonname__ = addon.getAddonInfo('name') +__language__ = addon.getLocalizedString + home = addon.getAddonInfo('path').decode('utf-8') icon = xbmc.translatePath(os.path.join(home, 'icon.png')) fanart = xbmc.translatePath(os.path.join(home, 'fanart.jpg')) @@ -85,7 +87,6 @@ def getSources(): addDir("Channel News Asia","http://video.xin.msn.com/browse/news/channel-newsasia?currentpage=",18,"http://img.video.msn.com/video/i/src/ensgcna~ensgcna_ppl.png",fanart,"Channel News Asia","TV",False) - def play_playlist(name, list): playlist = xbmc.PlayList(1) playlist.clear() @@ -115,6 +116,7 @@ def addLink(url,name,iconimage,fanart,description,genre,date,showcontext=True,pl liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": description, "Genre": genre, "Year": date } ) liz.setProperty( "Fanart_Image", fanart ) liz.setProperty('IsPlayable', 'true') + liz.setProperty('mimetype', 'video/x-msvideo') if not playlist is None: playlist_name = name.split(') ')[1] contextMenu_ = [('Play '+playlist_name+' PlayList','XBMC.RunPlugin(%s?mode=13&name=%s&playlist=%s)' %(sys.argv[0], urllib.quote_plus(playlist_name), urllib.quote_plus(str(playlist).replace(',','|'))))] @@ -123,9 +125,9 @@ def addLink(url,name,iconimage,fanart,description,genre,date,showcontext=True,pl return ok -xbmcplugin.setContent(int(sys.argv[1]), 'movies') +xbmcplugin.setContent(int(sys.argv[1]), 'tvshows') try: - xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_UNSORTED) + xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_TITLE) except: pass try: @@ -265,7 +267,7 @@ elif mode==19: match = re.compile("{formatCode: 101, url:.+?'(.+?)'").findall(str(link)) if not match: dialog = xbmcgui.Dialog() - dialog.ok("Mediacorp TV Singapore", '', 'No Playable Video Found') + dialog.ok(__language__(30000), '',__language__(30001)) else: for vidurl in match: vidurl = vidurl.replace("\\x3a",":").replace("\\x2f","/") ----------------------------------------------------------------------- Summary of changes: plugin.video.mediacorp/README.txt | 8 ++++++++ plugin.video.mediacorp/addon.xml | 7 ++++++- plugin.video.mediacorp/changelog.txt | 4 +++- plugin.video.mediacorp/default.py | 10 ++++++---- .../resources/language/english/strings.xml | 5 +++++ 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 plugin.video.mediacorp/resources/language/english/strings.xml hooks/post-receive -- Plugins ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Xbmc-addons mailing list Xbmc-addons@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbmc-addons