Skip to content

Parse video page if embedding the video on other sites has been disabled#144

Merged
Julian-Chu merged 3 commits intokkdai:masterfrom
john-black-3k:not_playable_in_embed_fix
Feb 3, 2021
Merged

Parse video page if embedding the video on other sites has been disabled#144
Julian-Chu merged 3 commits intokkdai:masterfrom
john-black-3k:not_playable_in_embed_fix

Conversation

@john-black-3k
Copy link
Copy Markdown
Contributor

Description

If the uploader has disabled embedding the video on other sites, parse video page. In this case we need to get the JSON for ytInitialPlayerResponse (using regex) and unmarshal that into a playerResponseData struct.

Issues to fix

Please link issues this PR will fix:
#138

@Julian-Chu
Copy link
Copy Markdown
Collaborator

great!! we will review it soon.

Copy link
Copy Markdown
Collaborator

@Julian-Chu Julian-Chu left a comment

Choose a reason for hiding this comment

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

test is green and code looks good, just need small refactoring.

Copy link
Copy Markdown
Collaborator

@Julian-Chu Julian-Chu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for contribution!

@Julian-Chu Julian-Chu merged commit 1118eb1 into kkdai:master Feb 3, 2021
@corny
Copy link
Copy Markdown
Collaborator

corny commented Feb 4, 2021

I've released a new version.

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