summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/download.py
diff options
context:
space:
mode:
authorWinman486 <harpsystems@gmail.com>2025-10-20 16:12:46 -0500
committerWinman486 <harpsystems@gmail.com>2025-10-20 16:12:46 -0500
commit3c835c2d196f02871a1be23430223538bf2cd226 (patch)
tree8d021fa04776f7bf67911dd4fd54a3e6f3dc912b /tidal_dl_ng/download.py
parent90ff7ea52ef7dd3c02afc313da4682b1fcb799eb (diff)
parent0afd65c89b9033a5a9505dc193699396666e16f2 (diff)
downloadtidal-dl-ng-3c835c2d196f02871a1be23430223538bf2cd226.tar.gz
Merge upstream/master and resolve conflicts
- Resolved conflict in dialog_settings.py (kept both cb_use_primary_album_artist and cb_mark_explicit checkboxes) - Fixed code quality issues found by make check: * Removed duplicate on_download_album_from_track function (F811) * Updated isinstance calls to use X | Y syntax instead of (X, Y) (UP038) * Fixed unused loop variable album_stub (B007) * Applied automatic formatting fixes (black, prettier, trailing whitespace) - Only remaining issue is C901 complexity warning in on_download_all_albums_from_playlist (expected per maintainer feedback)
Diffstat (limited to 'tidal_dl_ng/download.py')
-rw-r--r--tidal_dl_ng/download.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index f0bb883..bcb9d4c 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -1232,7 +1232,7 @@ class Download:
target_upc: dict[str, str] = METADATA_LOOKUP_UPC[metadata_target_upc]
explicit: bool = track.explicit if hasattr(track, "explicit") else False
title = name_builder_title(track)
- title += METADATA_EXPLICIT if explicit else ""
+ title += METADATA_EXPLICIT if explicit and self.settings.data.mark_explicit else ""
# `None` values are not allowed.
m: Metadata = Metadata(
@@ -1564,7 +1564,9 @@ class Download:
path_tracks.sort()
elif not is_album:
# If it is not an album sort by creation time
- path_tracks.sort(key=lambda x: os.path.getctime(x))
+ path_tracks.sort(
+ key=lambda x: x.stat().st_birthtime if hasattr(x.stat(), "st_birthtime") else x.stat().st_ctime
+ )
# Write data to m3u file
with path_playlist.open(mode="w", encoding="utf-8") as f: