Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtub-dl work in command line bot not work in php #26379

Open
skhmatin opened this issue Aug 19, 2020 · 2 comments
Open

youtub-dl work in command line bot not work in php #26379

skhmatin opened this issue Aug 19, 2020 · 2 comments
Labels

Comments

@skhmatin
Copy link

@skhmatin skhmatin commented Aug 19, 2020

it works when I use youtub-dl --cookies cookies.txt --get-url $url in LINUX terminal.

but it dose not work when I use exec("youtub-dl --cookies cookies.txt --get-url $url"); in PHP.

and it work when I delete --cookies cookies.txt from code.

return : [youtube] yIRBMRTb260: Downloading webpage

WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] yIRBMRTb260: Downloading webpage
ERROR: yIRBMRTb260: YouTube said: Unable to extract video data

help please.

@skhmatin skhmatin added the question label Aug 19, 2020
@kietheros
Copy link

@kietheros kietheros commented Aug 19, 2020

You should check stdout or stderr of your exec command. And url should be placed in double quote "".

@skhmatin
Copy link
Author

@skhmatin skhmatin commented Aug 19, 2020

return : [youtube] yIRBMRTb260: Downloading webpage

WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] yIRBMRTb260: Downloading webpage
ERROR: yIRBMRTb260: YouTube said: Unable to extract video data

@skhmatin skhmatin closed this Aug 19, 2020
@skhmatin skhmatin reopened this Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.