yt source is enabled by default
This commit is contained in:
parent
3f68f657bf
commit
fdec53a884
1 changed files with 4 additions and 3 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Reference in a new issue