flocascio / get-flash-videos

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

Using method 'arte' is broken #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to download an video from Arte+7
2.
3.

What is the expected output? What do you see instead?

get_flash_videos --debug 
http://videos.arte.tv/de/videos/das_voynich_manuskript-4298794.html
1 plugin installed:
- Hulu.pm
Downloading http://videos.arte.tv/de/videos/das_voynich_manuskript-4298794.html
-> GET http://videos.arte.tv/de/videos/das_voynich_manuskript-4298794.html
<- 200 text/html;charset=UTF-8 (56293)
Trying to open plugin ~/.get_flash_videos/plugins/Videos.pm
Trying to open plugin ~/.get_flash_videos/plugins/Arte.pm
Using method 'arte' for 
http://videos.arte.tv/de/videos/das_voynich_manuskript-4298794.html
Arte::find_video called, embed_url = 
"http://videos.arte.tv/de/videos/das_voynich_manuskript-4298794.html"

found videorefFileUrl 
"http://videos.arte.tv/de/do_delegate/videos/das_voynich_manuskript-4298794,view
,asPlayerXml.xml"

found playerurl 
"http://videos.arte.tv/blob/web/i18n/view/player_18-3188338-data-4921491.swf"

-> GET 
http://videos.arte.tv/de/do_delegate/videos/das_voynich_manuskript-4298794,view,
asPlayerXml.xml
<- 200 text/xml;charset=UTF-8 (775)
Error: Unable to find <video ref...> in XML 
http://videos.arte.tv/de/do_delegate/videos/das_voynich_manuskript-4298794,view,
asPlayerXml.xml

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/bin/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.

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

get_flash_videos -V
get_flash_videos version 1.25 (http://code.google.com/p/get-flash-videos/)

System:    Host: box Kernel: 3.2-rc5.towo.1-siduction-amd64 x86_64 (64 bit) 
           Desktop Xfce 4.8.3 Distro: Debian GNU/Linux wheezy/sid

Please provide any additional information below.

issue #226 seems to be the same problem 

Original issue reported on code.google.com by nixis...@googlemail.com on 19 Dec 2011 at 1:19

GoogleCodeExporter commented 8 years ago
you can fix that by applying the following patch :)
i'm running 1.24 but it should be the same on other recent versions.

--- /usr/local/libdata/perl5/site_perl/FlashVideo/Site/Arte.pm  Wed Feb  1 
01:26:19 2012
+++ /usr/local/libdata/perl5/site_perl/FlashVideo/Site/Arte.pm  Wed Feb  1 
01:23:49 2012
@@ -34,7 +34,7 @@

   $browser->get($xmlurl1);

-  if($browser->content =~ /<video lang="$lang" ref="(.*)"\/>/) {
+  if($browser->content =~ /<video lang="$lang" ref="(.*)" \/>/) {
     $xmlurl2 = $1;
     debug "found <video ref=\"$xmlurl2\">\n";
   } else {

yes, it's a missing space after the link :p
they must have changed their xml encoding or something like that.

enjoy culture :p
laurent

Original comment by ooook...@gmail.com on 1 Feb 2012 at 12:34