Files
tidal-dl/tidal_dl_ng/model/downloader.py
T

25 lines
510 B
Python
Raw Normal View History

import pathlib
from dataclasses import dataclass
from requests import HTTPError
from tidalapi.media import Stream, StreamManifest
@dataclass
class DownloadSegmentResult:
result: bool
url: str
path_segment: pathlib.Path
2024-11-12 22:36:16 +01:00
id_segment: int
error: HTTPError | None = None
@dataclass
class TrackStreamInfo:
"""Container for track stream information."""
stream_manifest: StreamManifest | None
file_extension: str
requires_flac_extraction: bool
media_stream: Stream | None