error trying to fetch The Voice Kids on Nine
Issue #8
duplicate
Just on this one show on Nine, I get this error:
video desc_url http://api.brightcove.com/services/library?token=ogxhPgSphIVa2hhxbi9oqtYwtg032io4B4-ImwddYliFWHqS0UfMEw..&video_id=3634742217001&command=find_video_by_id&video_fields=renditions
Traceback (most recent call last):
File "./grabber.py", line 55, in <module>
main()
File "./grabber.py", line 48, in main
if not n.download():
File "/home/jpl/webdl2/src/brightcove.py", line 42, in download
vbase, vpath = best_url.split("&")
ValueError: need more than 1 value to unpack
The "best_url" variable doesn't seem to have any ampersands in it. I tried two different shows on Nine (Major Crimes, The Mentalist) and it worked OK for them, so maybe something peculiar about The Voice Kids.
On closer inspection, the json content returned for the other shows contains "rtmp" URLs, whereas for The Voice Kids, it's an http URL, compare:
"url":"rtmp:\/\/vod.netshow.ninemsn.com.au\/ondemand\/&mp4:streams\/1622448032001\/2014\/05\/1622448032001_3595889975001_TheMentalist-S06E11.mp4"
with
"url":"http:\/\/vod.netshowhd.ninemsn.com.au\/z\/hds\/1622448031001\/201406\/1421\/1622448031001_3634914336001_54518e3b-f0e5-13eb-0261-e528afe98946.mp4"
Any clues for this? I naively tried to wget the URL but that failed, naturally.
Comments (3)
-
-
repo owner - changed status to open
-
repo owner - changed status to duplicate
Duplicate of
#4. - Log in to comment
Quite a number of Nine programs have the same issue:
AFL Footy Show AFL Sunday Footy Show Hamish & Andy's Gap Year South America
to name a few