twitch-dl/twitchdl/entities.py

26 lines
522 B
Python
Raw Permalink Normal View History

2024-03-23 09:50:42 +00:00
from dataclasses import dataclass
2024-04-23 16:09:30 +00:00
from typing import Any, Mapping, Optional
2024-03-23 09:50:42 +00:00
@dataclass
class DownloadOptions:
auth_token: Optional[str]
chapter: Optional[int]
2024-03-29 07:24:45 +00:00
concat: bool
2024-03-23 09:50:42 +00:00
dry_run: bool
end: Optional[int]
2024-03-23 09:50:42 +00:00
format: str
keep: bool
no_join: bool
overwrite: bool
output: str
quality: Optional[str]
rate_limit: Optional[int]
start: Optional[int]
2024-03-23 09:50:42 +00:00
max_workers: int
2024-03-30 06:32:12 +00:00
# Type for annotating decoded JSON
# TODO: make data classes for common structs
2024-04-23 16:09:30 +00:00
Data = Mapping[str, Any]