mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05d63d153e | |||
| 04de8e677c |
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "tiddl"
|
||||
version = "3.4.2"
|
||||
version = "3.4.4a1"
|
||||
description = "Download Tidal tracks with CLI downloader."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ log = logging.getLogger("tiddl")
|
||||
app = typer.Typer(name="tiddl", no_args_is_help=True, rich_markup_mode="rich")
|
||||
register_commands(app)
|
||||
|
||||
VERSION = "v3.4.2"
|
||||
VERSION = "v3.4.4a1"
|
||||
|
||||
|
||||
@app.callback()
|
||||
|
||||
@@ -24,8 +24,8 @@ class AuthResponse(BaseModel):
|
||||
created: int | str
|
||||
updated: int | str
|
||||
facebookUid: Optional[int] = None
|
||||
appleUid: Optional[str]
|
||||
googleUid: Optional[str]
|
||||
appleUid: Optional[str] = None
|
||||
googleUid: Optional[str] = None
|
||||
accountLinkCreated: bool
|
||||
emailVerified: bool
|
||||
newUser: bool
|
||||
|
||||
@@ -6,6 +6,8 @@ from xml.etree.ElementTree import fromstring
|
||||
|
||||
from tiddl.core.api.models import TrackStream, VideoStream
|
||||
|
||||
DOLBY_CODECS = ["eac3", "ac4"]
|
||||
|
||||
|
||||
def parse_manifest_XML(xml_content: str):
|
||||
"""
|
||||
@@ -80,7 +82,7 @@ def parse_track_stream(track_stream: TrackStream) -> tuple[list[str], str]:
|
||||
file_extension = ".flac"
|
||||
if track_stream.audioQuality == "HI_RES_LOSSLESS":
|
||||
file_extension = ".m4a"
|
||||
elif codecs.startswith("mp4") or codecs == "eac3":
|
||||
elif codecs.startswith("mp4") or codecs in DOLBY_CODECS:
|
||||
file_extension = ".m4a"
|
||||
else:
|
||||
raise ValueError(f"Unknown codecs `{codecs}` (trackId {track_stream.trackId}")
|
||||
|
||||
Reference in New Issue
Block a user