alpenrocksgc / get-flash-videos

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

tudou.com not working #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try to download video using the URL:
http://www.tudou.com/programs/view/MMpEOEMXGaY/

Debug Output:

./get_flash_videos-1.21 --debug http://www.tudou.com/programs/view/MMpEOEMXGaY/
No plugins installed
Downloading http://www.tudou.com/programs/view/MMpEOEMXGaY/
-> GET http://www.tudou.com/programs/view/MMpEOEMXGaY/
<- 200 text/html;charset=GBK (29902)
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Using method 'tudou' for http://www.tudou.com/programs/view/MMpEOEMXGaY/
-> GET http://www.tudou.com/v/MMpEOEMXGaY/
<- 302 text/html (0)
Using video ID 40395975
-> GET 
http://v2.tudou.com/v2/kili?safekey=YouNeverKnowThat&id=40395975&noCatch=7460
<- 200 text/xml; charset=UTF-8 (710)
Error: Video is only available in unknown file formats (wwwFlv) at 
./get_flash_videos-1.21 line 4339.

What version of the product are you using? On what operating system?
1.21

Original issue reported on code.google.com by inos...@gmail.com on 7 Sep 2010 at 2:23

GoogleCodeExporter commented 8 years ago
This appears to be due to an out-of-date reference to the Flash player at line 
58 of Tudou.pm. The following should be more or less impervious to the Flash 
player changing, and doesn't appear to match inappropriate things:

( $videoID ) = ( $embed_url =~ m`\.swf\?iid=(\d+)` );

If that is felt too loose, you can use the full SWF path:

( $videoID ) = ( $embed_url =~ 
m`http://js\.tudouui\.com/bin/player2/olc_6\.swf\?iid=(\d+)` );

However, this will break again when the Flash player changes.

This works for the video linked above, and others that I tried, including 
http://www.tudou.com/programs/view/HGEQHaUyE5A

Original comment by inductiv...@gmail.com on 24 May 2012 at 3:54