style: apply ruff auto-fixes

This commit is contained in:
2026-01-19 03:14:30 -08:00
parent 3ab122a55d
commit a961ac3ce7
72 changed files with 2477 additions and 2871 deletions

View File

@@ -9,13 +9,11 @@ This keeps format selection logic in ytdlp and leaves add-file plug-and-play.
from __future__ import annotations
import sys
from typing import Any, Dict, Iterable, List, Optional, Tuple
from ProviderCore.base import Provider, SearchResult
from SYS.provider_helpers import TableProviderMixin
from SYS.logger import log, debug
from tool.ytdlp import list_formats, is_url_supported_by_ytdlp
from SYS.logger import debug
class ytdlp(TableProviderMixin, Provider):
@@ -196,7 +194,6 @@ class ytdlp(TableProviderMixin, Provider):
def validate(self) -> bool:
"""Validate yt-dlp availability."""
try:
import yt_dlp # type: ignore
return True
except Exception:
return False
@@ -295,7 +292,7 @@ try:
debug(f"[ytdlp] Selection routed with format_id: {format_id}")
return result_args
debug(f"[ytdlp] Warning: No selection args or format_id found in row")
debug("[ytdlp] Warning: No selection args or format_id found in row")
return []
register_provider(