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:
|
2024-04-23 15:14:27 +00:00
|
|
|
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
|
2024-04-23 15:14:27 +00:00
|
|
|
end: Optional[int]
|
2024-03-23 09:50:42 +00:00
|
|
|
format: str
|
|
|
|
keep: bool
|
|
|
|
no_join: bool
|
|
|
|
overwrite: bool
|
|
|
|
output: str
|
2024-04-23 15:14:27 +00:00
|
|
|
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]
|