The branch, frodo has been updated
       via  8abc82a3a06f990bec3c2953a859fc78b96fa56b (commit)
      from  8e029aa6561e4a9521318252523fa92bbe7b90cb (commit)

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

commit 8abc82a3a06f990bec3c2953a859fc78b96fa56b
Author: beenje <[email protected]>
Date:   Fri Jan 3 15:08:37 2014 +0100

    [plugin.video.eevblog] updated to version 0.2.4

diff --git a/plugin.video.eevblog/addon.xml b/plugin.video.eevblog/addon.xml
index 50c8801..7a92a7b 100644
--- a/plugin.video.eevblog/addon.xml
+++ b/plugin.video.eevblog/addon.xml
@@ -20,5 +20,7 @@
     <description lang="hu">Az EEVblog egy vágatlan videó-blog ami az 
elektrotechnika után érdeklődők számára szolgál érdekes 
információkkal. Iparági dolgozók, hobbisták, hackerek és gyártók 
találhatnak itt érdekes videókat, Dave egyedi és lelkes stílusában 
előadva!&#xA;&#xA;Mindenképp látogasd meg a www.eevblog.com-ot 
!</description>
     <platform>all</platform>
     <language>en</language>
+    <source>https://github.com/ClumsyXBMC/EEVBlog-Xbmc-Plugin</source>
+    <license>Public Domain</license>
   </extension>
 </addon>
diff --git a/plugin.video.eevblog/changelog.txt 
b/plugin.video.eevblog/changelog.txt
index eef4b2f..0af2910 100644
--- a/plugin.video.eevblog/changelog.txt
+++ b/plugin.video.eevblog/changelog.txt
@@ -1,3 +1,7 @@
+[B|Version 0.2.4[/B]
+
+- Dave changed the site a bit, breaking the episode listing. Fixed.
+
 [B|Version 0.2.3[/B]
 
 - another workaround for attempts at parsing html with regexp. thanks mw9
diff --git a/plugin.video.eevblog/default.py b/plugin.video.eevblog/default.py
index a9d2a8d..7574100 100644
--- a/plugin.video.eevblog/default.py
+++ b/plugin.video.eevblog/default.py
@@ -40,7 +40,7 @@ def build_episodes_directory():
   url = 'http://www.eevblog.com/episodes/'
   data = open_url(url)
   match = re.compile('<body>(.+?)</body>', re.DOTALL).findall(data)
-  youtube_url_name = re.compile(r'<a href ="(.+?)" title="(EEVblog #.+?)">', 
re.DOTALL + re.IGNORECASE).findall(match[0])
+  youtube_url_name = re.compile(r'<a href.?="(.+?)" title="(EEVblog #.+?)">', 
re.DOTALL + re.IGNORECASE).findall(match[0])
   for ep_url, name in youtube_url_name:
     listitem = xbmcgui.ListItem(label = name, iconImage = "", thumbnailImage = 
"")
     #listitem.setInfo( type = "Video", infoLabels = { "Title": name, 
"Director": __plugin__, "Studio": __plugin__, "Genre": "Video Blog", "Plot": 
plot[0], "Episode": "" } )
@@ -57,25 +57,30 @@ def clean(name):
       
 def play_video(ep_url):
   xbmc.executebuiltin('ActivateWindow(busydialog)')
-  ep_data = open_url(ep_url)
-  plot = re.compile('<div class="info">.+?<p>(.+?)</p>.', 
re.DOTALL).findall(ep_data)
-  youtube_video_id = re.compile('<param name="movie" 
value=".*?/v/(.+?)[&\?].').findall(ep_data)
+  try:
+ 
+    ep_data = open_url(ep_url)
+    plot = re.compile('<div class="info">.+?<p>(.+?)</p>.', 
re.DOTALL).findall(ep_data)
+    youtube_video_id = re.compile('<param name="movie" 
value=".*?/v/(.+?)[&\?].').findall(ep_data)
     
-  # Ugly hack for a change in the page src from videos 140 onwards. 
-  if not youtube_video_id:
-    youtube_video_id = re.compile('youtube.com/embed/(.*?)"').findall(ep_data)
+    # Ugly hack for a change in the page src from videos 140 onwards. 
+    if not youtube_video_id:
+      youtube_video_id = 
re.compile('youtube.com/embed/(.*?)"').findall(ep_data)
   
-  # Close the busy waiting dialog, if the youtube url wasn't parsed correctly.
-  if not youtube_video_id:
-    xbmc.executebuiltin('Dialog.Close(busydialog)')
-    return
+    # Close the busy waiting dialog, if the youtube url wasn't parsed 
correctly.
+    if not youtube_video_id:
+      xbmc.executebuiltin('Dialog.Close(busydialog)')
+      return
 
-  url = 
"plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid="+youtube_video_id[0]
+    url = 
"plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid="+youtube_video_id[0]
 
-  listitem = xbmcgui.ListItem(label = name , iconImage = 'DefaultVideo.png', 
thumbnailImage = '')
-  listitem.setInfo( type = "Video", infoLabels={ "Title": name, "Director": 
__plugin__, "Studio": __plugin__, "Genre": genre, "Plot": plot, "Episode": 
int(0)  } )
+    listitem = xbmcgui.ListItem(label = name if name else '' , iconImage = 
'DefaultVideo.png', thumbnailImage = '')
+    listitem.setInfo( type = "Video", infoLabels={ "Title": name, "Director": 
__plugin__, "Studio": __plugin__, "Genre": genre, "Plot": plot, "Episode": 
int(0)  } )
+  except:
+    xbmc.executebuiltin( "Dialog.Close(busydialog)" )
+    xbmc.executebuiltin('Notification(Error,Something went wrong,2000)')
+    return
   xbmc.Player().play(item=url, listitem=listitem)
-  #xbmc.sleep(200)
 
 def get_params():
   param=[]

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

Summary of changes:
 plugin.video.eevblog/.project      |   17 +++++++++++++++++
 plugin.video.eevblog/.pydevproject |   10 ++++++++++
 plugin.video.eevblog/addon.xml     |    2 ++
 plugin.video.eevblog/changelog.txt |    4 ++++
 plugin.video.eevblog/default.py    |   35 ++++++++++++++++++++---------------
 5 files changed, 53 insertions(+), 15 deletions(-)
 create mode 100644 plugin.video.eevblog/.project
 create mode 100644 plugin.video.eevblog/.pydevproject


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to