update
This commit is contained in:
24
tidal_dl_ng/model/downloader.py
Normal file
24
tidal_dl_ng/model/downloader.py
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
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
|
||||
Reference in New Issue
Block a user