irsolourd / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 1 forks source link

Patch for trunk/plugin.video.free.cable/resources/lib/nbc.py #208

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Late night with Jimmy Fallon videos are now at
www.latenightwithjimmyfallon.com instead of www.nbc.com. As a result the BASE 
variable can not be used with these shows. So, let's get the base URL from the 
web page instead of the BASE variable. 

--- trunk/plugin.video.free.cable/resources/lib/nbc.py
+++ trunk/plugin.video.free.cable/resources/lib/nbc.py
@@ -81,7 +81,8 @@
             mode = 'showsubClips'
         for link in set.findAll('a'):
             name = link.string.strip()
-            url = BASE+link['href'].split('?')[0]+'?view=detail'
+            # url = BASE+link['href'].split('?')[0]+'?view=detail'
+            url = 
url[0:url.rfind('/')]+link['href'].split('?')[0]+'?view=detail'
             common.addDirectory(name, 'nbc', mode, url)
     common.setView('seasons')

Original issue reported on code.google.com by vernon...@gmail.com on 8 Feb 2013 at 10:42