Open GoogleCodeExporter opened 9 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
[deleted comment]
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
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
Original issue reported on code.google.com by
matt...@alltechcomputerservice.com
on 20 Feb 2012 at 12:43