mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
26 lines
522 B
Python
26 lines
522 B
Python
from dataclasses import dataclass
|
|
from typing import Any, Mapping, Optional
|
|
|
|
|
|
@dataclass
|
|
class DownloadOptions:
|
|
auth_token: Optional[str]
|
|
chapter: Optional[int]
|
|
concat: bool
|
|
dry_run: bool
|
|
end: Optional[int]
|
|
format: str
|
|
keep: bool
|
|
no_join: bool
|
|
overwrite: bool
|
|
output: str
|
|
quality: Optional[str]
|
|
rate_limit: Optional[int]
|
|
start: Optional[int]
|
|
max_workers: int
|
|
|
|
|
|
# Type for annotating decoded JSON
|
|
# TODO: make data classes for common structs
|
|
Data = Mapping[str, Any]
|