2013-02-06, 10:16
CBS no longer works. This is because CBS changed their html at http://www.cbs.com/video to add this menu item:
<a href="/shows/grammys/" class="isOff">GRAMMYS</a> <!-- Please note this terrible hack by J Randell -->
I got CBS to work again by changing the following lines in cbs.py starting with line 62 from
to
Note that I am a complete noob in Python and XBMC plugins so there are probably better ways to do this.
<a href="/shows/grammys/" class="isOff">GRAMMYS</a> <!-- Please note this terrible hack by J Randell -->
I got CBS to work again by changing the following lines in cbs.py starting with line 62 from
Code:
for item in categories:
catid = item['onclick'].replace("showDaypart('",'').replace("');",'')
name = catid.title()
common.addDirectory(name, 'cbs', 'shows', catid)
to
Code:
for item in categories:
if item['href'].find('javascript') == 0:
catid = item['onclick'].replace("showDaypart('",'').replace("');",'')
name = catid.title()
common.addDirectory(name, 'cbs', 'shows', catid)