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

Google drive link not working #11502

Closed
ghost opened this issue Dec 21, 2016 · 7 comments
Closed

Google drive link not working #11502

ghost opened this issue Dec 21, 2016 · 7 comments

Comments

@ghost
Copy link

@ghost ghost commented Dec 21, 2016

Hello!
When use
"youtube-dl -J https://drive.google.com/file/d/0B0OiLIKFGQWKNFI0aWdLbXg4aTQ/view""
command and open any download url in browser then get error
"Access to r3---sn-ab5l6nzk.c.docs.google.com was denied"
(Error: http://imgur.com/a/sjeEr)

However, the download work fine in server side when use "youtube-dl drive_link" command.
i found some drive video link from internet that get redirect to main url and that working fine.
https://lh3.googleusercontent.com/CJcz_V67tL-MJhzkoW2Ai0KzE0CuNtvSzgV_hnAwHoEGEa35_vtfMRWKBxzYf_7hBwM=m22

when run "youtube-dl -J drive_url" command then get thumbnail url like "https://lh6.googleusercontent.com/CEF8QKJsCKqdg0Rb4yoY_l0OyOjog6dxfoq5O0nKFvxWvz5kLaozyw=w1200-h630-p"
but not showing video url like https://lh3.googleusercontent.com/CJcz_V67t........

so, how to get https://lh3.googleusercontent.com/CJc... working url?
Thanks in advance for help,

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 21, 2016

Duplicate of #11084. You need to pass cookies, too.

@yan12125 yan12125 closed this Dec 21, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 21, 2016

i found some drive video link from internet

You might want to ask how they found the links. URLs started with r3---sn-ab5l6nzk.c.docs.google.com are exactly what Google Drive provides.

@ghost
Copy link
Author

@ghost ghost commented Dec 21, 2016

bro if youtube-dl get thumbnail url https://lh6.googleusercontent.com/CEF8QKJsCKqdg0Rb4yoY_l0OyOjog6dxfoq5O0nKFvxWvz5kLaozyw=w1200-h630-p

then why youtube-dl not give video url like https://lh3.googleusercontent.com/CJcz_V...
i think url structure is same then why miss youtube-dl this kind of video url?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 21, 2016

why miss youtube-dl this kind of video url?

youtube-dl searches for video URLs in the webpage. Google Drive doesn't provide video URLs like lh3.googleusercontent/..., so youtube-dl can't find. it.

@ghost
Copy link
Author

@ghost ghost commented Dec 21, 2016

"Cookie": "NID=93=LrtV0ys95KUMsy67It8vzjQV-A2fzfr3RuoVL35Y1acRfqNSpP6E4xuxyVmbCoRJCnV0RSfYvSu3d879Nzxs3SxMfeTN1F-uPEjQNenbATuOSQLRc4skYSRdsRTB5CO0; DRIVE_STREAM=RjlAlFNGMgk"}

which is name of cookie and which is value?
sorry for my question. Thanks

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 21, 2016

Name is NID and 93=Lrt... is the value

@ytdl-org ytdl-org locked and limited conversation to collaborators Oct 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.