update refactoring and add new features
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user