Skip to content

Commit

Permalink
Fix aac transcoding priority
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Dec 9, 2024

Verified

This commit was signed with the committer’s verified signature.
MindTooth Birger Johan Nordølum
1 parent a433ac4 commit 0d5db38
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scdl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Python Soundcloud Music Downloader."""

__version__ = "v2.12.2"
__version__ = "v2.12.3"
4 changes: 2 additions & 2 deletions scdl/scdl.py
Original file line number Diff line number Diff line change
@@ -1021,7 +1021,7 @@ def download_hls(
if not kwargs.get("onlymp3"):
if kwargs.get("opus"):
valid_presets = [("opus", ".opus"), *valid_presets]
valid_presets = [("aac", ".m4a"), *valid_presets]
valid_presets = [("aac_256k", ".m4a"), ("aac", ".m4a"), *valid_presets]

transcoding = None
ext = None
@@ -1052,7 +1052,7 @@ def download_hls(
track,
url,
preset_name
if preset_name != "aac"
if not preset_name.startswith("aac")
else "ipod", # We are encoding aac files to m4a, so an ipod codec is used
True, # no need to fully re-encode the whole hls stream
filename,

0 comments on commit 0d5db38

Please sign in to comment.