Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

not working on any youtube id #3

Closed
fmehdi opened this issue May 18, 2013 · 5 comments
Closed

not working on any youtube id #3

fmehdi opened this issue May 18, 2013 · 5 comments

Comments

@fmehdi
Copy link

fmehdi commented May 18, 2013

i can't download any file with any youtube id and return these errors :

Notice: Undefined variable: url_encoded_fmt_stream_map in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 67 Notice: Undefined variable: itag in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 78 Notice: Undefined variable: quality in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 79 Notice: Undefined variable: type in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 80 Notice: Undefined variable: url in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 82 Notice: Undefined variable: sig in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 82
List of Available Formats for Download - right-click and choose "save as"

i checked that with this id :
OuvW65fXqmg‎
CyPAPSvtFPY‎
r5zVRY6SLow‎

@jeckman
Copy link
Owner

jeckman commented May 22, 2013

fmehdl do you know what version of php you are running? Is curl installed on your server?

$url_encoded_fmt_stream_map comes from parsing the $video_info returned from youtube - if for some reason curl isn't able to get that content, it won't include any format map.

You could add, at line 76 of getvideo.php, something like:

echo '

This is what youtube returned: '. $video_info .'

';

That will dump out what curl got, or nothing - I can tighten up the error checking but that's not the real underlying problem

@jeckman
Copy link
Owner

jeckman commented May 22, 2013

Just checked in some better error checking for this case, including output of what $video_info contained

@jeckman jeckman closed this as completed May 22, 2013
@fmehdi
Copy link
Author

fmehdi commented May 27, 2013

oh! my server is on germany, and some videos are filtered in their region! thank you.
is there a way to download video with their title name and it's extention, not with 'videoplayback' name automatically?

thanks

@jeckman
Copy link
Owner

jeckman commented May 27, 2013

fmehdl if you use the 'server proxy' option (just added) that will use your server as a proxy and will get the correct filename.

In the normal case (using the link directly) there is no way to set the download filename as the browser is requesting the file directly from youtube.

@fmehdi
Copy link
Author

fmehdi commented May 27, 2013

thank you :-)

@navyndaaa navyndaaa mentioned this issue Feb 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants