Skip to content

fix: handle age_limit=None in subscribe call (#140) - #141

Merged
woefe merged 2 commits into
woefe:masterfrom
hyldmh:fix/140-age-limit-none-1779106970
Aug 25, 2026
Merged

woefe merged 2 commits into
woefe:masterfrom
hyldmh:fix/140-age-limit-none-1779106970

Conversation

@hyldmh

@hyldmh hyldmh commented May 18, 2026

Copy link
Copy Markdown
Contributor

Description

Fix TypeError when age_limit is None in video metadata during subscribe.

Root Cause

ytcc subscribe crashes when YouTube/MakerTube returns age_limit: null in video JSON metadata. The line processed.get("age_limit", 0) returns None (not the default 0) when the key exists but is null, then None > config.ytcc.age_limit raises TypeError.

Fix

Changed processed.get("age_limit", 0) to (processed.get("age_limit") or 0) which converts None to 0 before comparison.

Fixes #140

@woefe
woefe merged commit 639db9c into woefe:master Aug 25, 2026
4 checks passed
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.

Subscribe crashes when 'age_limit' is None (TypeError)

2 participants