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

the Error extracting sts from embedded url response #45

Closed
tzarebczan opened this issue Jun 15, 2018 · 9 comments
Closed

the Error extracting sts from embedded url response #45

tzarebczan opened this issue Jun 15, 2018 · 9 comments

Comments

@tzarebczan
Copy link

Running into this error on some YT downloads, any idea what it could be? https://github.com/rylio/ytdl/blob/master/video_info.go#L194

I'll find some example videos, but thought you might know if you've run into it.

@BruceWangNo1
Copy link
Contributor

BruceWangNo1 commented Jul 6, 2018

How about giving us some videos links you encountered that induce this error message? @tzarebczan

@tzarebczan
Copy link
Author

@nikooo777
Copy link

a couple more are here:
https://www.youtube.com/watch?v=-H6zRxTOVLU
https://www.youtube.com/watch?v=1YbK0ib6c8g

I do wonder if all of them are unavailable or limited videos. I'm sure I can pull up a much longer list but I'm going to need some time.

@BruceWangNo1
Copy link
Contributor

@nikooo777 The couple of links you gave do not have videos on Youtube web page, either.

@BruceWangNo1
Copy link
Contributor

Although still not fixed the code, I think I've pinpointed the cause and the cause seems rather weird. Here it is. The HTTP responses I got when requested through browser and through this code is surprisingly different, with the second one lacking "author" field. The related code line is as below.
https://github.com/rylio/ytdl/blob/master/video_info.go#L167

@BruceWangNo1
Copy link
Contributor

@tzarebczan I have figured out the reason which is that when you are not signed in on Youtube, some videos like the one you mentioned are not displayed because they may be inappropriate for children's eyes. So the only way to solve this problem is to add sign-in feature in this project to let Youtube know you are above certain age to let HTTP response show the desired video pages.

@tzarebczan
Copy link
Author

@BruceWangNo1 thanks for digging into this for us! Is this something you guys would look into integrating? We can we compensate you for the work with LBRY Credits (LBC). Check out our app here: https://lbry.io/get

Send me your LBC address to hello@lbry.io with this thread referenced so I can get some credits to you for looking into this issue.

@BruceWangNo1
Copy link
Contributor

@tzarebczan Well, thanks for your kind offer. However, currently I do not have time to do this. I think you can manage to do that by using the Youtube API.

@corny
Copy link
Collaborator

corny commented Dec 27, 2019

These videos are blocked for copyright reasons.

@corny corny closed this as completed Dec 27, 2019
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

4 participants