The branch, frodo has been updated
       via  43f10eb0952555e9b4c0321d2584759ff9f9ddc6 (commit)
       via  df509a24f66ca519284cab039cef8e1955badd38 (commit)
      from  7539e8f8fc9122e7ca581da8e5e5bdb2d9586c94 (commit)

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

commit 43f10eb0952555e9b4c0321d2584759ff9f9ddc6
Author: Martijn Kaijser <[email protected]>
Date:   Sat Jul 19 08:25:39 2014 +0200

    [plugin.video.newyorktimes] 1.4.2

diff --git a/plugin.video.newyorktimes/addon.xml 
b/plugin.video.newyorktimes/addon.xml
index c25876e..e5d7554 100644
--- a/plugin.video.newyorktimes/addon.xml
+++ b/plugin.video.newyorktimes/addon.xml
@@ -1,4 +1,4 @@
-<addon id="plugin.video.newyorktimes" name="New York Times" 
provider-name="Jonathan Beluch (jbel), idleloop" version="1.4.1">
+<addon id="plugin.video.newyorktimes" name="New York Times" 
provider-name="Jonathan Beluch (jbel), idleloop" version="1.4.2">
   <requires>
     <import addon="xbmc.python" version="2.1.0" />
     <import addon="script.module.beautifulsoup" version="3.2.0" />
diff --git a/plugin.video.newyorktimes/changelog.txt 
b/plugin.video.newyorktimes/changelog.txt
index 19f946a..4110cb9 100644
--- a/plugin.video.newyorktimes/changelog.txt
+++ b/plugin.video.newyorktimes/changelog.txt
@@ -1,4 +1,4 @@
-Version 1.4 to 1.4.1
+Version 1.4 to 1.4.2
 * Update addon to reflect website changes
 
 Version 1.3 (forked by idleloop)
diff --git a/plugin.video.newyorktimes/resources/lib/api.py 
b/plugin.video.newyorktimes/resources/lib/api.py
index 142ab7d..1c8bff9 100644
--- a/plugin.video.newyorktimes/resources/lib/api.py
+++ b/plugin.video.newyorktimes/resources/lib/api.py
@@ -6,6 +6,7 @@
     associated brightcove api for videos.
 
    :copyright: (c) 2012 by Jonathan Beluch
+   :modified on 2014 by idleloop
    :license: GPLv3, see LICENSE.txt for more details.
 '''
 import urlparse
@@ -56,8 +57,9 @@ def get_videos(url):
     Brightcove API.
     '''
     html = BS(requests.get(url).text)
-    menu = html.find('a', {'class': 'thumb-holder'})
-    ref_id = (menu['href']).split('=')[-1]
+    menu = html.find('div', {'class': 'recent-episodes'})
+    link = menu.find('a', {'class': 'thumb-holder'})
+    ref_id = (link['href']).split('=')[-1]
     brightcove = Brightcove(TOKEN)
     playlist = brightcove.find_playlist_by_reference_id(ref_id)
     return playlist.videos

http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=df509a24f66ca519284cab039cef8e1955badd38

commit df509a24f66ca519284cab039cef8e1955badd38
Author: Martijn Kaijser <[email protected]>
Date:   Sat Jul 19 08:24:05 2014 +0200

    [plugin.video.oodnurdtv] 0.0.5

diff --git a/plugin.video.oodnurdtv/addon.py b/plugin.video.oodnurdtv/addon.py
index 4ff2b21..160101d 100644
--- a/plugin.video.oodnurdtv/addon.py
+++ b/plugin.video.oodnurdtv/addon.py
@@ -54,7 +54,7 @@ def live():
 @plugin.route('/live2/<live_var>')
 def live2(live_var):
     url = live_var
-    plugin.set_resolved_url(my_drundoo.play_url(url))
+    plugin.set_resolved_url(my_drundoo.play_live_url(url))
 
 ######################################
 #End of live section 
diff --git a/plugin.video.oodnurdtv/addon.xml b/plugin.video.oodnurdtv/addon.xml
index fab25fa..d5e5c9d 100644
--- a/plugin.video.oodnurdtv/addon.xml
+++ b/plugin.video.oodnurdtv/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.oodnurdtv" name="drundootv" version="0.0.4" 
provider-name="pesheto">
+<addon id="plugin.video.oodnurdtv" name="drundootv" version="0.0.5" 
provider-name="pesheto">
   <requires>
     <import addon="xbmc.python" version="2.1.0"/>
     <import addon="script.module.xbmcswift2" version="2.4.0"/>
diff --git a/plugin.video.oodnurdtv/resources/drundoo.py 
b/plugin.video.oodnurdtv/resources/drundoo.py
index dc6be5d..46753e2 100644
--- a/plugin.video.oodnurdtv/resources/drundoo.py
+++ b/plugin.video.oodnurdtv/resources/drundoo.py
@@ -51,7 +51,25 @@ class drundoo:
                 play_list.append(play_link)
 
                 return play_list[0]    
-                       
+
+        def play_live_url(self,url):
+                link = url
+                play_list = []
+                temp = self.open_site(link)
+
+                start1 = temp.find('getJSON("') + 'getJSON("'.__len__()
+                end1 = temp.find('", function (data)')
+
+                link = 'http://www.drundoo.com' + temp[start1:end1]
+
+                temp = self.open_site(link)
+                start1 = temp.find('smil_url":"') + 'smil_url":"'.__len__()
+                end1 = temp.find('.f4m')
+                play_link = 
temp[start1:end1].replace('\\','').replace('manifest','master.m3u8')
+                play_list.append(play_link)
+
+                return play_list[0]
+
        def make_shows(self,url,my_mode):
 
                #timeshift_url = 'http://www.drundoo.com/channels/97/btv_hd/'

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

Summary of changes:
 plugin.video.newyorktimes/.travis.yml          |    7 +++++++
 plugin.video.newyorktimes/addon.xml            |    2 +-
 plugin.video.newyorktimes/changelog.txt        |    2 +-
 plugin.video.newyorktimes/resources/lib/api.py |    6 ++++--
 plugin.video.oodnurdtv/addon.py                |    2 +-
 plugin.video.oodnurdtv/addon.xml               |    2 +-
 plugin.video.oodnurdtv/resources/drundoo.py    |   20 +++++++++++++++++++-
 7 files changed, 34 insertions(+), 7 deletions(-)
 create mode 100644 plugin.video.newyorktimes/.travis.yml


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to