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

Release 2020.10.09 #177

Merged
merged 62 commits into from
Oct 9, 2020
Merged

Release 2020.10.09 #177

merged 62 commits into from
Oct 9, 2020

Conversation

blackjack4494
Copy link
Owner

@blackjack4494 blackjack4494 commented Oct 9, 2020

xarantolus and others added 30 commits June 19, 2020 14:57
This moves feed extraction from using html content to json metadata. However, loading additional pages no longer works.

The _extract_video_info function also returns a continuation object that contains some metadata that - together with an API key that is in the page source - might be used to request the next page.
If an object looks like a video (it has a `videoId` key), assume that it is.
…change was reverted

The old code now works again, but it downloads without limit. This is why a limit of 1000 videos is added, it can be overwritten with the `--max-downloads` option - that way, only so many ids will be extracted as videos downloaded
In order to extract videos from further pages, we need to get various variables that are in an argument to the `ytcfg.set` call in a script on the feed page.
If the markup of the page changes in the future, it might be possible that _FEED_DATA still works, but the other regex does not. SInce it is not necessary for the first page of videos, we make sure the program doesn't exit before extracting them.

TL;DR: Extract the first video page even if there are problems
Seems like this attribute is moved every few weeks, so we just extract both and use the one that is present.
This now supports declarations like `window["ytInitialData"] = ...` and `var ytInitialData = ...`
If an object looks like a video (it has a `videoId` key), assume that it is.
In order to extract videos from further pages, we need to get various variables that are in an argument to the `ytcfg.set` call in a script on the feed page.
xarantolus and others added 29 commits September 6, 2020 09:25
… artist - track, and add missing keys from info_dict
… may fail, as the other title json values might come up), instead of out of trackinfo, as bandcamp prefixes it with artist -
[youtube] fix yt-only playback when age restricted/gated - requires cookies
@blackjack4494 blackjack4494 merged commit 7419a53 into release Oct 9, 2020
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.

8 participants