Skip to content

[yt-dlp] Parsing helpers return None for missing or invalid input - #16836

Open
Primeteumm wants to merge 2 commits into
python:mainfrom
Primeteumm:yt-dlp-parsers-return-none
Open

Primeteumm wants to merge 2 commits into
python:mainfrom
Primeteumm:yt-dlp-parsers-return-none

Conversation

@Primeteumm

Copy link
Copy Markdown
Contributor

parse_iso8601, unified_strdate, unified_timestamp, parse_bitrate, urljoin and parse_duration return None (and accept None) when the input is missing or can't be parsed, like parse_filesize already does: parse_iso8601, unified_strdate, unified_timestamp, parse_bitrate, urljoin, parse_duration.

Agent used: Claude Code (Claude Opus 5.5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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.

1 participant