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

youtube-dl -g --get-url , return url can't play in webserver #21562

Closed
ahmadsalsa opened this issue Jun 29, 2019 · 2 comments
Closed

youtube-dl -g --get-url , return url can't play in webserver #21562

ahmadsalsa opened this issue Jun 29, 2019 · 2 comments
Labels

Comments

@ahmadsalsa
Copy link

@ahmadsalsa ahmadsalsa commented Jun 29, 2019

Checklist

  • [✓] I'm reporting a broken site support issue
  • [✓ ] I've verified that I'm running youtube-dl version 2019.06.27
  • [✓] I've checked that all provided URLs are alive and playable in a browser
  • [✓] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [✓] I've searched the bugtracker for similar bug reports including closed ones
  • [✓] I've read bugs section in FAQ

Verbose log

In SSH

[cloudweb@mithrandir ~]$ source /home/cloudweb/virtualenv/*******.com/3.5/bin/activate
(*******.com3.5)[cloudweb@mithrandir ~]$ youtube-dl --version
2019.06.27
(*******.com:3.5)[cloudweb@mithrandir ~]$ youtube-dl -g --get-url rg_zwK_sSEY
https://r2---sn-n4v7knlz.googlevideo.com/videoplayback?expire=1561810424&ei=mAEXXdKSJbKO3LUP972EqAs&ip=2400%3A8901%3A%3Af03c%3A91ff%3Afe71%3Ac3fb&id=o-ADVMUS5HvL-sG3a3Zib4BFfC2Js3fW8g5oQxt8iV9Ki9&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-n4v7knlz%2Csn-a5mlrn7s&ms=au%2Conr&mv=m&pl=64&gcr=us&initcwndbps=1878750&mime=video%2Fmp4&gir=yes&clen=34117929&dur=242.492&lmt=1557414164302232&mt=1561788671&fvip=2&keepalive=yes&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhAKVVUpZ7CnIhI0rCgXiFf9vaUecP2WFDTcwcjAxofb_TAiAAk9itgUy_BDbw3RoubmL7MGcJbgQIOedU1WR5PjpXTA%3D%3D&sig=ALgxI2wwRQIgJFgfczndCIV096vYhA1uPvYQH9qjAaGuG9j5csrd7tICIQCmgxZZOYSzIPngK3bpDc57R9fFczzLYcsPaL2G7P_X3g==&ratebypass=yes
https://r2---sn-n4v7knlz.googlevideo.com/videoplayback?expire=1561810424&ei=mAEXXdKSJbKO3LUP972EqAs&ip=2400%3A8901%3A%3Af03c%3A91ff%3Afe71%3Ac3fb&id=o-ADVMUS5HvL-sG3a3Zib4BFfC2Js3fW8g5oQxt8iV9Ki9&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-n4v7knlz%2Csn-a5mlrn7s&ms=au%2Conr&mv=m&pl=64&gcr=us&initcwndbps=1878750&mime=audio%2Fwebm&gir=yes&clen=4035312&dur=242.521&lmt=1557412652605725&mt=1561788671&fvip=2&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhAKVVUpZ7CnIhI0rCgXiFf9vaUecP2WFDTcwcjAxofb_TAiAAk9itgUy_BDbw3RoubmL7MGcJbgQIOedU1WR5PjpXTA%3D%3D&sig=ALgxI2wwRgIhAKl0FpNtN9BeCePedivGXvhE8wxRTE4k2uXjQEgXp45rAiEA5aC7KJ2PoLkOChX8LrPmMnfco051o2QJHFPbEJau2Tc=&ratebypass=yes

In Terminal Local

Last login: Sat Jun 29 13:12:40 on ttys000
ahmadsuyadis-MacBook-Pro:~ ahmadsuyadi$ youtube-dl -g --get-url rg_zwK_sSEY 
https://r2---sn-poqvn5u-jb3k.googlevideo.com/videoplayback?id=o-ABgEWmAUMuG3L-px2qPSnwIIKDKkcJ9POfnXuQXPjoSs&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397&itag=137&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-poqvn5u-jb3k%2Csn-30a7yne7&ms=au%2Conr&mv=m&pl=23&ei=IgQXXcefHMmD3LUPy7S2oAE&gcr=id&initcwndbps=23750&mime=video%2Fmp4&gir=yes&clen=34117929&dur=242.492&lmt=1557414164302232&mt=1561789354&fvip=2&keepalive=yes&c=WEB&txp=5535432&ip=114.5.221.126&ipbits=0&expire=1561811074&sparams=ip%2Cipbits%2Cexpire%2Cid%2Caitags%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&key=yt8&signature=95D6CC9AC9E4837EF4FA39D88BC79D5DCE4BB3D0.85A6D4C14E92A8E2584D28BCE37B77108A7D9F27&ratebypass=yes
https://r2---sn-poqvn5u-jb3k.googlevideo.com/videoplayback?id=o-ABgEWmAUMuG3L-px2qPSnwIIKDKkcJ9POfnXuQXPjoSs&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-poqvn5u-jb3k%2Csn-30a7yne7&ms=au%2Conr&mv=m&pl=23&ei=IgQXXcefHMmD3LUPy7S2oAE&gcr=id&initcwndbps=23750&mime=audio%2Fwebm&gir=yes&clen=4035312&dur=242.521&lmt=1557412652605725&mt=1561789354&fvip=2&keepalive=yes&c=WEB&txp=5531432&ip=114.5.221.126&ipbits=0&expire=1561811074&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&key=yt8&signature=9C348FC27584A3EBADEC5EB9CC7B431FA41B339A.E1AB49535A46BBC60291FEA8F28AA71C28040FCF&ratebypass=yes
ahmadsuyadis-MacBook-Pro:~ ahmadsuyadi$

Description

I have installed youtube-dl on the web server and when I run the command line youtube-dl -g --get-url rg_zwK_sSEY
the url return cannot be played in the browser, for example like this

#commmand line ssh
http://prntscr.com/o87ijd
#open return in browser
http://prntscr.com/o87ivr

but when I run the terminal local return it can be played in the browser, for example like this
#commmand line terminal local
http://prntscr.com/o87j1z
#open return in browser
http://prntscr.com/o87j9l

How to fix ?

@bitraid
Copy link
Contributor

@bitraid bitraid commented Jun 29, 2019

These are temporary links tied to an ip address, so this is expected. Also you don't have to use both -g and --get-url, use one or the other.

@remitamine remitamine closed this Jun 29, 2019
@remitamine remitamine added the invalid label Jun 29, 2019
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
3 participants
You can’t perform that action at this time.