mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-02 07:50:04 -08:00
23 lines
627 B
Python
23 lines
627 B
Python
from dataclasses import dataclass, field
|
|
from typing import Callable
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class DownloadParams:
|
|
url: str
|
|
anime_title: str
|
|
episode_title: str
|
|
silent: bool
|
|
progress_hooks: list[Callable] = field(default_factory=list)
|
|
vid_format: str = "best"
|
|
force_unknown_ext: bool = False
|
|
verbose: bool = False
|
|
headers: dict[str, str] = field(default_factory=dict)
|
|
subtitles: list[str] = field(default_factory=list)
|
|
merge: bool = False
|
|
clean: bool = False
|
|
prompt: bool = True
|
|
force_ffmpeg: bool = False
|
|
hls_use_mpegts: bool = False
|
|
hls_use_h264: bool = False
|