From fdec53a88487418205a4e9c4b6daf8a9707bf1f3 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 22 Sep 2024 18:58:32 +0200 Subject: [PATCH] yt source is enabled by default --- syng/sources/youtube.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syng/sources/youtube.py b/syng/sources/youtube.py index e132282..e8b53f6 100644 --- a/syng/sources/youtube.py +++ b/syng/sources/youtube.py @@ -27,9 +27,9 @@ class YouTube: A minimal compatibility layer for the YouTube object of pytube, implemented via yt-dlp """ - __cache__: dict[ - str, Any - ] = {} # TODO: this may grow fast... but atm it fixed youtubes anti bot measures + __cache__: dict[str, Any] = ( + {} + ) # TODO: this may grow fast... but atm it fixed youtubes anti bot measures def __init__(self, url: Optional[str] = None): """ @@ -181,6 +181,7 @@ class YoutubeSource(Source): source_name = "youtube" config_schema = Source.config_schema | { + "enabled": (bool, "Enable this source", True), "channels": (list, "A list channels\nto search in", []), "tmp_dir": (str, "Folder for\ntemporary download", "/tmp/syng"), "max_res": (int, "Maximum resolution\nto download", 720),