update refactoring and add new features

This commit is contained in:
2026-07-24 20:55:58 -07:00
parent 7f12bc7f40
commit 03fbbbcf28
69 changed files with 16332 additions and 17600 deletions
+8
View File
@@ -510,6 +510,14 @@ class ytdlp(TablePluginMixin, Provider):
SEARCH_QUERY_KEYS = ("search", "q")
SUPPORTED_CMDLETS = frozenset({"download-file", "search-file"})
QUERY_ARG_CHOICES = {
"format": ["audio", "1080", "720", "480", "360", "best", "worst", "bestvideo+bestaudio"],
"clip": ["0:00-1:00"],
"audio": ["true", "false", "1", "0"],
"item": ["1"],
}
INLINE_QUERY_FIELD_CHOICES = QUERY_ARG_CHOICES
@staticmethod
def config_schema() -> List[Dict[str, Any]]:
return _ytdlp_config_schema()