yt source is enabled by default

This commit is contained in:
Christoph Stahl 2024-09-22 18:58:32 +02:00
parent 3f68f657bf
commit fdec53a884

View file

@ -27,9 +27,9 @@ class YouTube:
A minimal compatibility layer for the YouTube object of pytube, implemented via yt-dlp A minimal compatibility layer for the YouTube object of pytube, implemented via yt-dlp
""" """
__cache__: dict[ __cache__: dict[str, Any] = (
str, Any {}
] = {} # TODO: this may grow fast... but atm it fixed youtubes anti bot measures ) # TODO: this may grow fast... but atm it fixed youtubes anti bot measures
def __init__(self, url: Optional[str] = None): def __init__(self, url: Optional[str] = None):
""" """
@ -181,6 +181,7 @@ class YoutubeSource(Source):
source_name = "youtube" source_name = "youtube"
config_schema = Source.config_schema | { config_schema = Source.config_schema | {
"enabled": (bool, "Enable this source", True),
"channels": (list, "A list channels\nto search in", []), "channels": (list, "A list channels\nto search in", []),
"tmp_dir": (str, "Folder for\ntemporary download", "/tmp/syng"), "tmp_dir": (str, "Folder for\ntemporary download", "/tmp/syng"),
"max_res": (int, "Maximum resolution\nto download", 720), "max_res": (int, "Maximum resolution\nto download", 720),