mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
85088e737a
* rename `VideoQuality` to `StreamVideoQuality` * remove bad logic from predicting video quality * print info when skipping video * bump to 3.1.1 alpha
20 lines
499 B
Python
20 lines
499 B
Python
from typing import Literal
|
|
|
|
from tiddl.core.api.models import StreamVideoQuality, TrackQuality
|
|
|
|
TRACK_QUALITY_LITERAL = Literal["low", "normal", "high", "max"]
|
|
VIDEO_QUALITY_LITERAL = Literal["sd", "hd", "fhd"]
|
|
|
|
track_qualities: dict[TRACK_QUALITY_LITERAL, TrackQuality] = {
|
|
"low": "LOW",
|
|
"normal": "HIGH",
|
|
"high": "LOSSLESS",
|
|
"max": "HI_RES_LOSSLESS",
|
|
}
|
|
|
|
video_qualities: dict[VIDEO_QUALITY_LITERAL, StreamVideoQuality] = {
|
|
"sd": "LOW",
|
|
"hd": "MEDIUM",
|
|
"fhd": "HIGH",
|
|
}
|