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

Add cipher #27

Merged
merged 6 commits into from
Apr 20, 2020
Merged

Add cipher #27

merged 6 commits into from
Apr 20, 2020

Conversation

Julian-Chu
Copy link
Collaborator

Description

  • some youtube videos have cipher signature, need to decipher the signature and append to query parameter. please see ref
  • add eurl to query parameters of get_video_info , please see ref.

Test Cases

All of the following cases works on my machine with this fix, but need more tests on other machines.

#25
go run main.go -o "test1".mov https://www.youtube.com/watch?v=54e6lBE3BoQ
#17
go run main.go -o "test2".mp4 https://www.youtube.com/watch?v=FHpvI8oGsuQ
#21
go run main.go -o "test3".mp4 https://www.youtube.com/watch?v=n3kPvBCYT3E

please provide valid file name for testing to avoid some cases that video title contains invalid characters for OS file system.

env: go1.14.1 windows/amd64

@kkdai kkdai self-requested a review April 20, 2020 10:16
Copy link
Owner

@kkdai kkdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my god, it helps a lot.
Thank you

@kkdai kkdai merged commit 2a57fdd into kkdai:master Apr 20, 2020
@kkdai
Copy link
Owner

kkdai commented Apr 20, 2020

Fixed #25 #17 #21

@prologic
Copy link

Thank you! This should fix https://github.com/prologic/tube/issues/12 once I have some time to test out this library as an alterantive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants