Sitelet https://github.com/gpodder/gpodder/pull/1520
Skip to content

Adapt youtube-dl plugin to latest yt-dlp - #1520

Merged
auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:yt-dlp-latest
Jun 30, 2023
Merged

auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:yt-dlp-latest

Conversation

@tpikonen

Copy link
Copy Markdown
Contributor

This fixes two problems found when using the youtube-dl plugin with the latest yt-dlp (2023.06.22).

Use 'color': 'no_color' in yt-dlp params instead of 'no_color': True. This prevents warning log output.

The internal member _VALID_URL_RE is now an iterable. Adapt the is_supported_url function and the regex cache code.

This likely breaks compatibility with original youtube-dl.

@tpikonen

Copy link
Copy Markdown
Contributor Author

Actually it was not too hard to make this compatible with the old version of yt-dlp and youtube-dl. Not tested though.

@computerfreak105

computerfreak105 commented Jun 30, 2023 via email

Copy link
Copy Markdown

@auouymous
auouymous merged commit d575449 into gpodder:master Jun 30, 2023
@auouymous

Copy link
Copy Markdown
Member

Thank you. fccea8a bumps the required yt-dlp version so those with an older yt-dlp will be told to upgrade when they have trouble with the no_color change.

Youtube-dl can't be tested until they put out a release for the 2023.02.17 youtube.com breakage. It is under active developement, just no releases. At some point we can drop support, but for now we will try to remain compatible and assume all changes work.

@tpikonen
tpikonen deleted the yt-dlp-latest branch July 1, 2023 07:37
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