The branch, dharma has been updated
via 319e3aefbf37b5a1dfa07034ea19d93e232358c1 (commit)
via d362a3873fce90fb8446769f7050cbf9c7b3a4a1 (commit)
from 0e9e9c4fd9c4e2d98037a68467ec39eda7e01447 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=319e3aefbf37b5a1dfa07034ea19d93e232358c1
commit 319e3aefbf37b5a1dfa07034ea19d93e232358c1
Author: spiff <[email protected]>
Date: Wed May 30 08:55:18 2012 +0200
[plugin.video.twit] updated to version 0.1.5
diff --git a/plugin.video.twit/addon.xml b/plugin.video.twit/addon.xml
index 3916303..2869196 100644
--- a/plugin.video.twit/addon.xml
+++ b/plugin.video.twit/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.twit"
name="TWiT"
- version="0.1.4"
+ version="0.1.5"
provider-name="divingmule,thanks to Adam B.">
<requires>
<import addon="xbmc.python" version="1.0"/>
diff --git a/plugin.video.twit/changelog.txt b/plugin.video.twit/changelog.txt
index f672edd..e7b852d 100644
--- a/plugin.video.twit/changelog.txt
+++ b/plugin.video.twit/changelog.txt
@@ -1,3 +1,7 @@
+Version 0.1.5
+fix for UnicodeDecodeError
+added Trey's Variety Hour
+
Version 0.1.4
fix for site changes
new playback settings
diff --git a/plugin.video.twit/default.py b/plugin.video.twit/default.py
index 41a11c7..bf54606 100644
--- a/plugin.video.twit/default.py
+++ b/plugin.video.twit/default.py
@@ -45,6 +45,7 @@ def categories():
addDir(__language__(30026),'http://twit.tv/show/this-week-in-radio-tech',1,'http://static.mediafly.com/publisher/images/ab7b2412afa84674971e4c93665d0e06/icon-600x600.png')
addDir(__language__(30036),'http://twit.tv/show/before-you-buy',1,'http://static.mediafly.com/publisher/images/dee7de4f87034d4d917ed446df3616e4/icon-600x600.png')
addDir(__language__(30037),'http://twit.tv/show/game-on',1,'http://static.mediafly.com/publisher/images/3f551d9b6ef9476fb76f92ccd4b37826/icon-600x600.png')
+
addDir(__language__(30042),'http://twit.tv/show/treys-variety-hour',1,'http://leoville.tv/podcasts/coverart/tvh300video.jpg')
def index(url,iconimage):
@@ -56,7 +57,7 @@ def index(url,iconimage):
items = soup.findAll('div', attrs={'class' :
'view-content'})[3]('div', attrs={'class' : 'field-content'})
for i in items:
url = i.a['href']
- name = i.a.string
+ name = i.a.string.encode('ascii', 'ignore')
try:
description = i.p.string
except:
@@ -113,6 +114,7 @@ def indexTwitFeed():
episode_name = re.compile('<div class="field-item
odd">(.+?)</div></div>').findall(item_str)[0]
if episode_name.startswith('<img'):
episode_name = re.compile('<div class="field-item
odd"><p>(.+?)</p><p>').findall(item_str)[0]
+ episode_name = episode_name.replace('&',
'&').replace('"', '"').replace(''', "'").encode('ascii', 'ignore')
except:
episode_name = ''
try:
@@ -127,7 +129,7 @@ def indexTwitFeed():
description = desc.replace('&', '&').replace('"',
'"').replace(''', "'")
except:
description = ''
- name = title+' - '+episode_name.replace('&',
'&').replace('"', '"').replace(''', "'")
+ name = title+' - '+episode_name
addLink(name, url, description, date, 4, thumb)
else: print '--- There was a problem adding episode %s ---' % title
diff --git a/plugin.video.twit/resources/language/English/strings.xml
b/plugin.video.twit/resources/language/English/strings.xml
index 4c26ebc..15c4dbe 100644
--- a/plugin.video.twit/resources/language/English/strings.xml
+++ b/plugin.video.twit/resources/language/English/strings.xml
@@ -42,4 +42,5 @@
<string id='30039'>Seems the video is not up yet. Play the audio?</string>
<string id='30040'>TWiT</string>
<string id='30041'>Audio TWiT.am/listen</string>
+ <string id='30042'>Trey's Variety Hour</string>
</strings>
\ No newline at end of file
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=d362a3873fce90fb8446769f7050cbf9c7b3a4a1
commit d362a3873fce90fb8446769f7050cbf9c7b3a4a1
Author: spiff <[email protected]>
Date: Wed May 30 08:52:57 2012 +0200
[plugin.video.mlbmc] updated to version 0.1.0
diff --git a/plugin.video.mlbmc/addon.xml b/plugin.video.mlbmc/addon.xml
index 5879eae..e905039 100644
--- a/plugin.video.mlbmc/addon.xml
+++ b/plugin.video.mlbmc/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.mlbmc"
name="MLBMC"
- version="0.0.9"
+ version="0.1.0"
provider-name="divingmule">
<requires>
<import addon="xbmc.python" version="1.0"/>
diff --git a/plugin.video.mlbmc/changelog.txt b/plugin.video.mlbmc/changelog.txt
index fbdcd47..fa7d8cd 100644
--- a/plugin.video.mlbmc/changelog.txt
+++ b/plugin.video.mlbmc/changelog.txt
@@ -1,3 +1,6 @@
+Version 0.1.0
+added game highlights patch from bunglebungle -
http://forum.xbmc.org/showthread.php?tid=104391&pid=1109006#pid1109006
+
Version 0.0.9
added Full Count, a daily live show
added a time delay for todays games
diff --git a/plugin.video.mlbmc/default.py b/plugin.video.mlbmc/default.py
index 4cd2870..4f09b68 100644
--- a/plugin.video.mlbmc/default.py
+++ b/plugin.video.mlbmc/default.py
@@ -21,6 +21,7 @@
# * Everyone from the fourm - http://fourm.xbmc.org
# * giftie - for the colored text code :) thanks.
# * theophile and the others from -
http://forum.xbmc.org/showthread.php?t=97251
+# * bunglebungle for game highlights patch -
http://forum.xbmc.org/showthread.php?tid=104391&pid=1109006#pid1109006
import urllib
@@ -103,7 +104,7 @@ TeamCodes = {
def addon_log(string):
- xbmc.log( "[addon.mlbmc.0.0.9]: %s" %string )
+ xbmc.log( "[addon.mlbmc.0.1.0]: %s" %string )
def categories():
@@ -153,6 +154,9 @@ def condensedGames():
def gameHighlights():
thumb = 'http://mlbmc-xbmc.googlecode.com/svn/icons/highlights.png'
+ addGameDir(__language__(30010),dateStr.day[0],26,thumb)
+ addGameDir(__language__(30011),dateStr.day[1],26,thumb)
+ addGameDir(__language__(30012),dateStr.day[3],26,thumb)
addGameDir(__language__(30036),'8879838',1,thumb)
addGameDir(__language__(30037),'9781914',1,thumb)
addGameDir(__language__(30038),'10025018',1,thumb)
@@ -249,8 +253,11 @@ def getRequest(url, data=None, headers=None,
cookies=False):
return
elif hasattr(e, 'code'):
addon_log( 'We failed with error code - %s.' % e.code )
-
xbmc.executebuiltin("XBMC.Notification("+__language__(30015)+","+__language__(30019)+str(e.code)+",10000,"+icon+")")
- return
+ if 'highlights.xml' in url:
+ return
+ else:
+
xbmc.executebuiltin("XBMC.Notification("+__language__(30015)+","+__language__(30019)+str(e.code)+",10000,"+icon+")")
+ return
def get_podcasts(url):
@@ -274,7 +281,7 @@ def getTeams():
addPlaylist(name,url,5,'http://mlbmc-xbmc.googlecode.com/svn/icons/tvideo.png')
-def getRealtimeVideo(url):
+def getRealtimeVideo(url, addYes=True):
try:
soup = BeautifulStoneSoup(getRequest(url),
convertEntities=BeautifulStoneSoup.XML_ENTITIES)
videos = soup.findAll('media')
@@ -287,7 +294,8 @@ def getRealtimeVideo(url):
addLink(name,'http://mlb.mlb.com/gen/multimedia/detail/'+url+'.xml',duration,2,thumb)
except:
pass
-
addDir(__language__(30017),'http://gdx.mlb.com/components/game/mlb/'+dateStr.day[1]+'/media/highlights.xml',8,icon)
+ if addYes:
+
addDir(__language__(30017),'http://gdx.mlb.com/components/game/mlb/'+dateStr.day[1]+'/media/highlights.xml',8,icon)
def getTeamVideo(url):
@@ -402,7 +410,28 @@ def getCondensedGames(url):
addLink(name, url, '', 2,
'http://mlbmc-xbmc.googlecode.com/svn/icons/condensed.png')
except:
continue
+
+def getGameSpecificHighlights(dstr):
+ base = 'http://www.mlb.com/gdcross/components/game/mlb/'
+ thumb = 'http://mlbmc-xbmc.googlecode.com/svn/icons/highlights.png'
+ try:
+ data = json.loads(getRequest(base + dstr +'/grid.json'))
+ items = data['data']['games']['game']
+ for i in items:
+ try:
+ gameId = i['id']
+ gid = gameId.replace('/','_')
+ gid = gid.replace('-','_')
+ glbl = TeamCodes[i['away_team_id']][0] + ' @ ' +
TeamCodes[i['home_team_id']][0]
+ gurl = 'http://gdx.mlb.com/components/game/mlb/' + dstr +
'/gid_' + gid + '/media/highlights.xml'
+ addon_log( "gsh item: " + str(gid) + ', lbl: ' + glbl + ',
url:' + gurl )
+ addDir(glbl, gurl, 27, thumb)
+ except:
+ continue
+ except:
+ return
+
def getVideoListXml(url):
url = 'http://mlb.mlb.com'+url
@@ -910,8 +939,6 @@ def
getGameURL(name,event,content,session,cookieIp,cookieFp,scenario,live):
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
-
-
def get_smil(url):
soup = BeautifulStoneSoup(getRequest(url))
base = soup.meta['base']
@@ -1182,4 +1209,10 @@ if mode==24:
if mode==25:
mlbGame(event, True)
+if mode==26:
+ getGameSpecificHighlights(url)
+
+if mode==27:
+ getRealtimeVideo(url, False)
+
xbmcplugin.endOfDirectory(int(sys.argv[1]))
\ No newline at end of file
-----------------------------------------------------------------------
Summary of changes:
plugin.video.mlbmc/addon.xml | 2 +-
plugin.video.mlbmc/changelog.txt | 3 +
plugin.video.mlbmc/default.py | 47 +++++++++++++++++---
plugin.video.twit/addon.xml | 2 +-
plugin.video.twit/changelog.txt | 4 ++
plugin.video.twit/default.py | 6 ++-
.../resources/language/English/strings.xml | 1 +
7 files changed, 54 insertions(+), 11 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