Skip to content

Add cipher#27

Merged
kkdai merged 6 commits intokkdai:masterfrom
Julian-Chu:add-cipher
Apr 20, 2020
Merged

Add cipher#27
kkdai merged 6 commits intokkdai:masterfrom
Julian-Chu:add-cipher

Conversation

@Julian-Chu
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

kkdai commented Apr 20, 2020

Fixed #25 #17 #21

@prologic
Copy link
Copy Markdown

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