rt2yrru / get-flash-videos

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

Intermittent Youtube download issues #432

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
* What steps will reproduce the problem?
Usually, if I try downloading the video again, it works fine, though rarely it 
will just not work ever, such as for this video: 
http://www.youtube.com/watch?v=jsHPDYOI4wQ
Some videos have no problems, others work after some prodding, and a few won't 
work at all; there doesn't seem to be any discernible pattern that I can find.

* What is the expected output?
Well, the video downloads!

* What do you see instead?
"Couldn't download [incredibly long url]: 403 forbidden"

What version of the product are you using? On what operating system?
The latest version as of 9/26/2012, according to the program when passed the 
"--update" parameter.
Windows 7 Professional x64

Attached is the output of running "get_flash_videos.bat -debug 
http://www.youtube.com/watch?v=jsHPDYOI4wQ".

Original issue reported on code.google.com by Night...@gmail.com on 27 Sep 2012 at 3:54

Attachments:

GoogleCodeExporter commented 8 years ago
I have seen this problem too.

Although I have noticed that if a video fails, it will always fail. Other ones 
will download properly.

Original comment by pcwal...@comcast.net on 27 Sep 2012 at 5:19

GoogleCodeExporter commented 8 years ago
Yeah, you're right. I used to be able to get it to work by just trying over and 
over, but now that's not even working. I just encountered the issue on another 
video (http://www.youtube.com/watch?v=EpW3k7upKd0) and it won't work no matter 
how many times I try.

Original comment by Night...@gmail.com on 27 Sep 2012 at 6:32

GoogleCodeExporter commented 8 years ago
For me it's the same.
Getting a '403 forbidden' now for every videodownload.

Original comment by MrMDel...@googlemail.com on 27 Sep 2012 at 3:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ditto.  Stopped working for me yesterday. '403 forbidden'

Original comment by brentrob...@gmail.com on 27 Sep 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Apparently a "signature" parameter is now required.  See 
https://github.com/rg3/youtube-dl/issues/427 .

Original comment by Benjamin...@gmail.com on 27 Sep 2012 at 11:28

GoogleCodeExporter commented 8 years ago
Some more examples in case someone wants to test it:
http://www.youtube.com/watch?v=MkTL2Ug6llE&feature=youtube_gdata
http://www.youtube.com/watch?v=GWh35PwTdOo&feature=youtube_gdata

Original comment by pcwal...@comcast.net on 27 Sep 2012 at 11:40

GoogleCodeExporter commented 8 years ago
Yeah the signature did it.
For all using get_flash_video just modify
sub parse_youtube_url_encoded_fmt_stream_map:

sub parse_youtube_url_encoded_fmt_stream_map {      
  my($raw_map) = @_;;
  my $map = {};
  foreach my $params (split /,/, $raw_map) {
    my $format = "";
    my $url = "";
    my $signature = ""; 
    foreach my $pair (split /&/, $params) {
      my ($name, $value) = split /=/, $pair;
      if ($name eq "itag"){
        $format = $value;
      } elsif ($name eq "url") {
            $url = uri_unescape($value);
      } elsif ($name eq "sig"){
        $signature= $value;
      }
   }
    $map->{$format} = $url."&signature=".$signature;
  }
 return $map;
}

Original comment by MrMDel...@googlemail.com on 28 Sep 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Submitted a pull request to the GitHub repo with the fix, thanks.
https://github.com/monsieurvideo/get-flash-videos/pull/75

Original comment by Night...@gmail.com on 28 Sep 2012 at 8:33

GoogleCodeExporter commented 8 years ago
NightKev updates have been merged with my git repository, tagged and 3 download 
files created and uploaded to my github repository. They can be found here

https://github.com/njtaylor/get-flash-videos/downloads

For those who need them. 

Original comment by njtaylor...@gmail.com on 28 Sep 2012 at 11:23

GoogleCodeExporter commented 8 years ago
The perl from NightKev didn't compile, new set of downloads with compile issues 
fixed available.

Original comment by njtaylor...@gmail.com on 29 Sep 2012 at 2:41

GoogleCodeExporter commented 8 years ago
Ah, I didn't test it haha, just copied the changes from #8. Changing the file 
worked on my copy so I figured it was good.

Original comment by Night...@gmail.com on 29 Sep 2012 at 9:44

GoogleCodeExporter commented 8 years ago
Wohoo ! The above solution works great. Thanks so much.

Original comment by rav...@gmail.com on 1 Oct 2012 at 2:36

GoogleCodeExporter commented 8 years ago
Issue 433 has been merged into this issue.

Original comment by zakflash...@gmail.com on 3 Oct 2012 at 7:31

GoogleCodeExporter commented 8 years ago
Fixed in git. Thanks to NightKev for the original (albeit slightly broken fix), 
njtaylor for fixing it and psycotica0 for sending a massive pull request. Open 
source is awesome.

Original comment by zakflash...@gmail.com on 3 Oct 2012 at 7:32