From 9bfdb2596cf951523af66f71cd0d720cb3a2aa42 Mon Sep 17 00:00:00 2001 From: hyldmh <104757688+hyldmh@users.noreply.github.com> Date: Mon, 18 May 2026 04:22:53 -0800 Subject: [PATCH] fix: handle age_limit=None in subscribe (fixes #140) --- ytcc/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytcc/updater.py b/ytcc/updater.py index 701ace6..843cb72 100644 --- a/ytcc/updater.py +++ b/ytcc/updater.py @@ -61,7 +61,7 @@ def validate_processing_result(processed, title, url) -> str: if not url: return "the video url is missing" - if processed.get("age_limit", 0) > config.ytcc.age_limit: + if (processed.get("age_limit") or 0) > config.ytcc.age_limit: return "the video is age restricted" if processed.get("is_live", False) and config.ytcc.skip_live_stream: