The branch, frodo has been updated via 16b370b36ca3e555fa90973325fcb675418e1694 (commit) from ccb82b61ae39e17787a9240afe07f4880c4bbfe6 (commit)
- Log ----------------------------------------------------------------- http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=16b370b36ca3e555fa90973325fcb675418e1694 commit 16b370b36ca3e555fa90973325fcb675418e1694 Author: beenje <bee...@xbmc.org> Date: Wed Mar 13 21:30:27 2013 +0100 [plugin.video.day9] updated to version 2.1.4 diff --git a/plugin.video.day9/addon.xml b/plugin.video.day9/addon.xml index 3252de7..13e31d4 100644 --- a/plugin.video.day9/addon.xml +++ b/plugin.video.day9/addon.xml @@ -1,22 +1,22 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<addon id="plugin.video.day9" - name="Day[9].tv archive" - version="2.1.2" - provider-name="Robert"> - <requires> - <import addon="xbmc.python" version='2.1.0'/> - <import addon="script.module.beautifulsoup" version='3.0.8'/> - <import addon="plugin.video.youtube" version='3.2.0'/> - <import addon='script.module.parsedom' version='1.3.0'/> - </requires> - <extension point="xbmc.python.pluginsource" - library="default.py"> - <provides>video</provides> - </extension> - <extension point="xbmc.addon.metadata"> - <language>en</language> - <platform>all</platform> - <summary>Day[9].tv Archive</summary> - <description>Casts from the awesome guy Sean "Day[9]" Plott teaching "How to be a better gamer" in Starcraft.</description> - </extension> -</addon> +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<addon id="plugin.video.day9" + name="Day[9].tv archive" + version="2.1.4" + provider-name="Robert"> + <requires> + <import addon="xbmc.python" version='2.1.0'/> + <import addon="script.module.beautifulsoup" version='3.0.8'/> + <import addon="plugin.video.youtube" version='3.2.0'/> + <import addon='script.module.parsedom' version='1.3.0'/> + </requires> + <extension point="xbmc.python.pluginsource" + library="default.py"> + <provides>video</provides> + </extension> + <extension point="xbmc.addon.metadata"> + <language>en</language> + <platform>all</platform> + <summary>Day[9].tv Archive</summary> + <description>Casts from the awesome guy Sean "Day[9]" Plott teaching "How to be a better gamer" in Starcraft.</description> + </extension> +</addon> diff --git a/plugin.video.day9/changelog.txt b/plugin.video.day9/changelog.txt index 8b741c6..97a1f42 100644 --- a/plugin.video.day9/changelog.txt +++ b/plugin.video.day9/changelog.txt @@ -1,37 +1,43 @@ +v2.1.4 +- fix for addon.xml being encoded wrong + +v2.1.3 +- hopefully permanently fixed encoding issues with the URL/title by base64 encoding them between menu screens + v2.1.2 - updated for frodo's use of xbmc.python 2.1.0 -v2.0.2 +v2.0.2 - update to fix titles on frodo. Also adds some support for description/airdate -v2.0.1 -- re-release to eden/frodo - -v2.0.0 -- rewrite by Robert to use the new day9.tv website for content source, and to - use youtube as the backend for streaming. - -v1.0.2 -- AGAIN: Updated the code due to blip.tv changes on their website - -v1.0.1 -- Fixed some bugs - -v1.0.0 -- Initial eden-pre - -v0.5.0 -- Updated the code due to blip.tv changes on their website - -v0.4.0 -- New icon added, edited some code in day9.py - -v0.3 -- Deleting the "favourite" feature for now - -v0.2 -- The plugin "Starcraft 2" has been splitted into 2 plugins, "Day9" and - "djWHEAT". - -v0.1 -- The first realese of the plugin Starcraft2. +v2.0.1 +- re-release to eden/frodo + +v2.0.0 +- rewrite by Robert to use the new day9.tv website for content source, and to + use youtube as the backend for streaming. + +v1.0.2 +- AGAIN: Updated the code due to blip.tv changes on their website + +v1.0.1 +- Fixed some bugs + +v1.0.0 +- Initial eden-pre + +v0.5.0 +- Updated the code due to blip.tv changes on their website + +v0.4.0 +- New icon added, edited some code in day9.py + +v0.3 +- Deleting the "favourite" feature for now + +v0.2 +- The plugin "Starcraft 2" has been splitted into 2 plugins, "Day9" and + "djWHEAT". + +v0.1 +- The first realese of the plugin Starcraft2. diff --git a/plugin.video.day9/day9.py b/plugin.video.day9/day9.py index 02c2ab0..d2b50e9 100644 --- a/plugin.video.day9/day9.py +++ b/plugin.video.day9/day9.py @@ -1,4 +1,4 @@ -import urllib, urllib2, re, sys, os +import urllib, urllib2, re, sys, os, base64 import xbmc, xbmcaddon, xbmcgui, xbmcplugin import CommonFunctions @@ -51,7 +51,7 @@ class Day9: def addCategory(self, title, url, action, menu=None): - url=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&title="+title+"&action="+urllib.quote_plus(action) + url=sys.argv[0]+"?url="+base64.encodestring(url)+"&title="+base64.encodestring(title)+"&action="+urllib.quote_plus(action) listitem=xbmcgui.ListItem(title,iconImage="DefaultFolder.png", thumbnailImage="DefaultFolder.png") listitem.setInfo( type="Video", infoLabels={ "Title": title } ) if menu: @@ -95,13 +95,14 @@ class Day9: def showTitles(self, params = {}): get = params.get - link = self.getRequest(get("url")) + link = self.getRequest(base64.decodestring(get("url"))) tree = BeautifulSoup(link, convertEntities=BeautifulSoup.HTML_ENTITIES) # narrow down the search to get rid of upcoming shows # I'd like to add them just to inform people of what/when things are # happening but there isn't good markup to isolate them. I guess I # could excise the existing shows and say whatever is left is # upcoming... + results=tree.find('ul', { "id" : "results" }) for r in results.findAll('h3'): link = r.contents[0] @@ -117,11 +118,10 @@ class Day9: def showGames(self, params = {}): get = params.get - link = self.getRequest(get("url")) + link = self.getRequest(base64.decodestring(get("url"))) tree = BeautifulSoup(link) airdate = tree.find('time') - # instead of using the title from get("title") we're grabbing it from the page to avoid HTML %20 and such. Could probably strip it with HTML_ENTITIES again if need be. This became a problem with frodo I think. It no longer parses the HTML. - title = tree.find('h1', { "name" : "title" }).contents[0] + title = base64.decodestring(get("title")) try: description = tree.find(text='Description').findNext('p') except: ----------------------------------------------------------------------- Summary of changes: plugin.video.day9/addon.xml | 44 ++++++++++++------------ plugin.video.day9/changelog.txt | 70 +++++++++++++++++++++------------------ plugin.video.day9/day9.py | 12 +++--- 3 files changed, 66 insertions(+), 60 deletions(-) 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_d2d_mar _______________________________________________ Xbmc-addons mailing list Xbmc-addons@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbmc-addons