The branch, dharma-pre has been updated
       via  8b5bf5743f50e856210db4d3cdda1751503fcb92 (commit)
      from  42f4c82479db75b290044ac95aa761139809ede6 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=8b5bf5743f50e856210db4d3cdda1751503fcb92

commit 8b5bf5743f50e856210db4d3cdda1751503fcb92
Author: spiff <[email protected]>
Date:   Wed Oct 6 11:51:40 2010 +0200

    [plugin.video.twit] updated to version 0.0.3

diff --git a/plugin.video.twit/addon.xml b/plugin.video.twit/addon.xml
index 2dcd0f3..d58d2e4 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.0.2"

+       version="0.0.3"

        provider-name="divingmule,thanks to Adam B.">

   <requires>

     <import addon="xbmc.python" version="1.0"/>

diff --git a/plugin.video.twit/default.py b/plugin.video.twit/default.py
index 52ebed1..fb7056b 100644
--- a/plugin.video.twit/default.py
+++ b/plugin.video.twit/default.py
@@ -5,7 +5,7 @@ __language__ = __settings__.getLocalizedString
 

 

 def CATEGORIES():

-               
addLink(__language__(30017),'http://bglive-a.bitgravity.com/twit/live/high','http://twit.tv/sites/all/themes/twit/img/logo.gif')
        

+               
addLink(__language__(30017),'http://bglive-a.bitgravity.com/twit/live/high','','','http://twit.tv/sites/all/themes/twit/img/logo.gif')
  

                
addDir(__language__(30000),'http://feeds.twit.tv/twit_video_large',1,'http://static.mediafly.com/publisher/images/ba85558acd844c7384921f9f96989a37/icon-600x600.png')

                
addDir(__language__(30001),'http://feeds.twit.tv/tnt_video_large',1,'http://static.mediafly.com/publisher/images/9ff0322cc0444e599a010cdb9005d90a/icon-600x600.png')

                
addDir(__language__(30002),'http://feeds.twit.tv/fc_video_large',1,'http://static.mediafly.com/publisher/images/f7f40bcf20c742cfb55cbccb56c2c68c/icon-600x600.png')

@@ -34,13 +34,15 @@ def INDEX(url):
         response.close()

         match=re.compile('url="(.+?)" fileSize=".+?" type="video/mp4" 
medium="video" bitrate="1000" framerate="29.97" samplingrate="48" channels="1" 
duration=".+?" width="864" height="480" mediafly:profile="H264b_864x480_1000" 
/>\n').findall(link)

         name=re.compile('<title>(.+?)</title>\n').findall(link)

+        
plot=re.compile('<itunes:subtitle>(.+?)</itunes:subtitle>\n').findall(link)

+        date=re.compile('<pubDate>(.+?)</pubDate>\n').findall(link)

        icon=re.compile('<img src="(.+?)"').findall(link)       

-       del name[0];del name[0] # The first two strings do not apply.

+       del name[0];del name[0];del plot[0];del date[0] # The first two strings 
do not apply.

         for index in range(len(match)):

                if len(match) == len(icon):

-                       addLink(name[index],match[index],icon[index])

+                       
addLink(name[index],match[index],plot[index],date[index],icon[index])

                else:

-                       addLink(name[index],match[index],'') 

+                       
addLink(name[index],match[index],plot[index],date[index],'') 

 

                 

 def get_params():

@@ -64,10 +66,10 @@ def get_params():
 

 

 

-def addLink(name,url,iconimage):

+def addLink(name,url,plot,date,iconimage):

         ok=True

-        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", 
thumbnailImage=iconimage)

-        liz.setInfo( type="Video", infoLabels={ "Title": name } )

+        liz=xbmcgui.ListItem(name+'  '+date, iconImage="DefaultVideo.png", 
thumbnailImage=iconimage)

+        liz.setInfo( type="Video", infoLabels={ "Title":name,"Plot":plot } )

         
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)

         return ok

 


-----------------------------------------------------------------------

Summary of changes:
 plugin.video.twit/addon.xml     |    2 +-
 plugin.video.twit/changelog.txt |    9 +++++++++
 plugin.video.twit/default.py    |   16 +++++++++-------
 3 files changed, 19 insertions(+), 8 deletions(-)
 create mode 100644 plugin.video.twit/changelog.txt


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to