dhumketuxbox / ror5

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

PBS changed releaseURL format, Pbs.pm no longer works #536

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
$ /usr/local/src/get_flash_videos/get-flash-videos/get_flash_videos --debug 
http://video.pbs.org/video/2365088242/
No plugins installed
Trying to open plugin ~/.get_flash_videos/plugins/Video.pm
Trying to open plugin ~/.get_flash_videos/plugins/Pbs.pm
Using method 'pbs' for http://video.pbs.org/video/2365088242/
Downloading http://video.pbs.org/video/2365088242/
-> GET http://video.pbs.org/video/2365088242/
<- 200 text/html; charset=utf-8 (46001): UTF8 on, non-ASCII, 46001 characters 
46004 bytes
media_id: 2365088242

-> GET http://video.pbs.org/videoPlayerInfo/2365088242
<- 301 text/html; charset=utf-8 (0): UTF8 on, ASCII, 0 characters 0 bytes
Error: File does not exist:  at 
/usr/local/src/get_flash_videos/get-flash-videos/lib/FlashVideo/Utils.pm line 
516.
 (from FlashVideo::Site::Pbs::/usr/local/src/get_flash_videos/get-flash-videos/lib/FlashVideo/Site/Pbs.pm::75)

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: 
/usr/local/src/get_flash_videos/get-flash-videos/get_flash_videos --update

If the latest version does not support this please open a bug
at http://code.google.com/p/get-flash-videos/ making sure you include
the output with --debug enabled. Alternatively, fix it yourself and send us
a pull request on Github: https://github.com/monsieurvideo/get-flash-videos
Couldn't download any videos.

http://video.pbs.org/videoPlayerInfo/2365088242/ 
Outputs:
<videoPlayerInfo>
<emailServiceURL>http://video.pbs.org/share/</emailServiceURL>
<playerURL>http://video.pbs.org/video/2365088242</playerURL>
<mediaId>2365088242</mediaId>
<mediaURL>http://dgjigvacl6ipj.cloudfront.net/media</mediaURL>
<releaseURL>aes$6B463646633D56B44FF18A2A31304AAF$HnAlp0caSjqJPWVVyWz/kk56VKV/tc9
C4s04o/+w36A34azF/O+pLuTL7qJJ4gqDu/cBYkoQM00PiGYQtaja/qKaVzaUZERKkZoDJVBRF1A=</r
eleaseURL>
<brand>PBS</brand>
What version of the product are you using? On what operating system?
Ubuntu 12.04.3 LTS Server (3.8.0-31-generic x86_64)
get-flash-videos from git on 2013-10-02

Original issue reported on code.google.com by christop...@gmail.com on 3 Oct 2013 at 3:57

GoogleCodeExporter commented 8 years ago
Restored issue, scanner deleted. Will need a site plugin

Original comment by njtaylor...@gmail.com on 7 Oct 2013 at 11:07

GoogleCodeExporter commented 8 years ago
I tried adding $browser->allow_redirects just before the  
$browser->get("http://video.pbs.org/videoPlayerInfo/$media_id"); in 
FlashVideo::Site::Pbs::find_video to get past the 301 error and got the 
following problem:

-> GET http://video.pbs.org/videoPlayerInfo/2365081850
<- 200 application/xml (5533): UTF8 on, ASCII, 5533 characters 5533 bytes
encrypted release url: 
aes$0E61DE4740C69C9A4B134780002B180F$n0MjiL9Ih2rBUFngtH4I8asixR6Dn4WIRt6rSI9oQH1
H0SwfiFD9iA1uOvnQb9T9PEf6OcmQYQzfHdTySSRdkJLIPtld6d8MOAOnVx+DK/w=

unencrypted release url: 
http://urs.pbs.org/redirect/c3fc23e9690144a887fc91726dc014ef/&player=portal

-> GET 
http://urs.pbs.org/redirect/c3fc23e9690144a887fc91726dc014ef/&player=portal
<- 501 text/plain (44): UTF8 off, ASCII, 44 characters 44 bytes
Error: File does not exist: 501 Protocol scheme 'rtmp' is not supported
 at /home/pwalden/bin/get_flash_videos-1.25 line 7739.
 (from FlashVideo::Site::Pbs::/home/pwalden/bin/get_flash_videos-1.25::17459)

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: /home/pwalden/bin/get_flash_videos-1.25 --update

If the latest version does not support this please open a bug
at http://code.google.com/p/get-flash-videos/ making sure you include
the output with --debug enabled. Alternatively, fix it yourself and send us
a pull request on Github: https://github.com/monsieurvideo/get-flash-videos
Couldn't download any videos.

Original comment by pcwal...@comcast.net on 13 Oct 2013 at 11:08

GoogleCodeExporter commented 8 years ago
I goofed up. The 301 redirects to the same URL with a trailing slash. So 
changing

$browser->get("http://video.pbs.org/videoPlayerInfo/$media_id");

to

$browser->get("http://video.pbs.org/videoPlayerInfo/$media_id/");

causes the plugin to work again.

If someone could make the change, the PBS site will work again.

Original comment by pcwal...@comcast.net on 13 Oct 2013 at 11:27

GoogleCodeExporter commented 8 years ago
Made the change you suggested to the code and it works now. Awesome.

Many thanks.
PM

Original comment by Pierre.M...@gmail.com on 4 Dec 2013 at 12:11

GoogleCodeExporter commented 8 years ago
Doesn't work for all pages--http://video.pbs.org/video/2365163614/ gives 
'Error: Cannot decode string with wide characters at /usr/lib64/perl5/Encode.pm 
line 176.
 (from FlashVideo::Site::Pbs::/home/andrew/Downloads/get-flash-videos/lib/FlashVideo/Site/Pbs.pm::79)'

As a workaround for myself (couldn't successfully debug the script) I created 
this script. Run it, paste the encrypted {release URL} from 
http://video.pbs.org/videoPlayerInfo/{media id}/  e.g. 
'aes$9E2E2A960A183B2BFBA348F52235A291$9WhJx7sMLgp2KYT9asJHpklZhdR/Slkn9yMMJlsVRL
5iO/GimCI3+D58gwkf+oOtcZV6HWFQklRKIVIrf0Xbx8CwarvLSBo5qqHP7srVvHI=' and it will 
spit out the decrypted url to follow for video.

Original comment by sipp...@gmail.com on 29 Jan 2014 at 3:13

Attachments:

GoogleCodeExporter commented 8 years ago
Help! I've wasted a whole afternoon (1.40PM -5.07PM) trying to figure this all 
out.

I have not idea what I am doing with perl. I tried running, installing, getting 
errors and messages that don't mean anything to me. May as well be Ancient 
Chinese, because I cannot understand.

All I want is the video for "American Promise"

url http://video.pbs.org/video/2365165683/

Once I figured out ahot to get the "encrypted" reference number using 
http://video.pbs.org/videoPlayerInfo/2365165683/

Which is  

aes$5EE3BBB73261D0BDD207F9318C56AB2B$Kj1o8zc12xgdspaKdgHID4q2ZY3Jhc0VoWpl4Sh2CZD
6QzCKpXNIy0sTQs9X4FKQFFUaQMqiL6HeowUuWvnoXI/k6rGXJTBBWzq4Iv8hHpI=

Trying to learn how to run perl on my MacBook Pro (Mavericks, OS 10.9.1), I'm 
getting too many errors that does not make sense to me and Googling for answers 
has not yielded any clear instructions on how to solve them.

Please, if you can just get the video for me. That would be great. To date, for 
some reason when streaming the video, the video pauses at about 2.40 into the 
program. No problem if I skip, but always gets stuck. Not the network 
connection since I am university computer, so fastest there is.

Thanks.

My email address is publicaddy@me.com

Original comment by sheldonr...@gmail.com on 6 Feb 2014 at 10:27

GoogleCodeExporter commented 8 years ago
See issue #577

Original comment by pcwal...@comcast.net on 14 Jul 2015 at 7:21