twitch-dl/twitchdl/entities.py

26 lines
482 B
Python
Raw Normal View History

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