google-code-export / get-flash-videos

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

wat.tv changed interface (doesn't work anymore) #266

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

wat.tv apparently changed their interface, and the old 
http://www.wat.tv/interface/contentv2/$video_id URLs are no longer valid.

The new mechanism works along the following lines:

1. Get videoID; the new IDs are a bit longer e.g. 342446nIc0K114702047 but the 
old-style IDs are in there, here it'd be: 4702047
2. Get JSON from http://www.wat.tv/interface/contentv3/$old_id
3. Get video location. This involves a request to e.g.
http://www.wat.tv/get/web/4702047?
token=ded03ca8a49cbda5f8d965f3786fb9d4/4dda9ed2
&domain=www.wat.tv
&domain2=www.wat.tv
&revision=4.0.993
&synd=0&helios=1&
context=swf2
&pub=5
&country=XX
&sitepage=WAT%2Ftv%2Fcatchup%2Fjt_tf1_13h
&lieu=wat
&playerContext=CONTEXT_WAT
&getURL=1
&version=MAC%2010,3,181,14

where the token seems to be important for the server to return a correct video 
URL. The part after the slash is just a hexadecimal unix timestamp, but I 
haven't figured out what the (apparently MD5) first part means.
4. Download video file from URL returned by previous request.

HTH

Original issue reported on code.google.com by wolfgang...@gmx.de on 23 May 2011 at 6:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Alright, I figured it out.
Unfortunately it involves a secret key disassembled from the ActionScript in 
the player flash file.

Anyhow, it's at https://github.com/l337r007/get-flash-videos
so feel free to pull and test.

Original comment by wolfgang...@gmx.de on 23 May 2011 at 11:28

GoogleCodeExporter commented 9 years ago
Wat doesn't work at this time : 

git clone https://github.com/l337r007/get-flash-videos.git
cd get-flash-videos/
./get_flash_videos --debug 
"http://www.wat.tv/video/decouverte-marais-salperwick-3wmyr_2eyxv_.html" &> log

------- log -------

No plugins installed
Downloading 
http://www.wat.tv/video/decouverte-marais-salperwick-3wmyr_2eyxv_.html
-> GET http://www.wat.tv/video/decouverte-marais-salperwick-3wmyr_2eyxv_.html
<- 200 text/html; charset=UTF-8 (91041)
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Wat.pm
Using method 'wat' for 
http://www.wat.tv/video/decouverte-marais-salperwick-3wmyr_2eyxv_.html
Error: Undefined subroutine &FlashVideo::Site::Wat::find_video called at 
./get_flash_videos line 312.

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: ./get_flash_videos --update

If the latest version does not support this please open a bug (or
contribute a patch!) at http://code.google.com/p/get-flash-videos/
make sure you include the output with --debug enabled.
Couldn't download any videos.

----- END log -----

Original comment by andrieug...@gmail.com on 23 Jul 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Alright, I admit that my patch was a bit faulty. :( But the build system 
apparently as well. If you do:

git clone https://github.com/l337r007/get-flash-videos.git
cd get-flash-videos/
make release-combined
./combined-get_flash_videos-1.25 --debug 
"http://www.wat.tv/video/decouverte-marais-salperwick-3wmyr_2eyxv_.html"

It should download as intended now. I committed a bunch of fixes from other 
forks now as well.

Original comment by wolfgang...@gmx.de on 24 Jul 2011 at 6:17