lukeskywalkerwasright / bluecop-xbmc-repo

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

Error Contents: list index out of range on Star Trek TNG #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to CBS in the Free Cable plugin
2. Go to Classic
3. Go to Star Trek the Next Generation
4. Click on any episode

What is the expected output? What do you see instead?
When it should play the episode, instead you get a plugin failed message at the 
bottom of the screen.

What version of the product are you using? On what operating system?
XBMC 10.1 from the xbmc-team Maverick Repo on Ubuntu Natty x86-32 bit
librtmp from git source (updated 2-19-2012)

Please provide any additional information below.
This is probably related to issue #29 (the same error, but for the daily show)
Log snippet:

                                            start of FREE CABLE plugin
19:36:11 T:2928323440 M:1683091456  NOTICE: Entering playST function
19:36:11 T:2928323440 M:1683091456  NOTICE: FREE CABLE --> common :: getHTML :: 
url = http://www.startrek.com/watch_video/episode-preview-justice
19:36:15 T:2928323440 M:1682812928   ERROR: Error Type: exceptions.IndexError
19:36:15 T:2928323440 M:1682812928   ERROR: Error Contents: list index out of 
range
19:36:15 T:2928323440 M:1682812928   ERROR: Traceback (most recent call last):
                                              File "/home/lytithwyn/.xbmc/addons/plugin.video.free.cable/default.py", line 49, in ?
                                                modes ( )
                                              File "/home/lytithwyn/.xbmc/addons/plugin.video.free.cable/default.py", line 45, in modes
                                                exec 'sitemodule.%s()' % common.args.sitemode
                                              File "<string>", line 1, in ?
                                              File "/home/lytithwyn/.xbmc/addons/plugin.video.free.cable/resources/lib/cbs.py", line 430, in playST
                                                url = re.compile("flowplayer\\('flow_player', '.*?', '(.*?)'\\)").findall(data)[0]
                                            IndexError: list index out of range
19:36:15 T:3078338432 M:1682812928   ERROR: Playlist Player: skipping 
unplayable item: 0, path 
[plugin://plugin.video.free.cable/?url="http%3A%2F%2Fwww.startrek.com%2Fwatch_vi
deo%2Fepisode-preview-justice"&mode="cbs"&sitemode="playST"]

Original issue reported on code.google.com by matt...@alltechcomputerservice.com on 20 Feb 2012 at 12:43

GoogleCodeExporter commented 8 years ago
Sorry, missed a step.  After you go to TNG, you need to go to "Most Popular"

Original comment by matt...@alltechcomputerservice.com on 20 Feb 2012 at 12:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
OK, I did some poking around and found that astronut's comment on issue #29 was 
correct.  They've changed the way they are embedding the video URL in the web 
page.  A little more investigation shows that now they're using JSON.

I wanted to do this the cleanest possible way so I was going to use regex to 
pull out the whole json string and use json.loads to turn it into an object but 
their json doesn't follow the spec; field names aren't quoted and the python 
json interpreter chokes on the data.

I don't actually know python so instead of going through a bunch of trouble I 
just came up with this substitute for line 430 in the file:

url = re.compile("flowplayer\\('flow_player', '.*?', 
{clip:{\n\s+url:\s+'(.*?)'").findall(data)[0]

Original comment by matt...@alltechcomputerservice.com on 27 Feb 2012 at 10:19

GoogleCodeExporter commented 8 years ago
Note the above fix fixes TNG, but not the Original Series.  Haven't test the 
others yet.

Apparently the Original Series doesn't use flowplayer at all.

Original comment by matt...@alltechcomputerservice.com on 27 Feb 2012 at 10:46