Handle DRM-free tracks in AppleMusic downloader

This commit is contained in:
Rafael Moraes
2026-05-23 15:45:09 -03:00
parent 622661a679
commit 1eba432153
+6
View File
@@ -159,6 +159,12 @@ class AppleMusicSongDownloader:
self,
download_item: DownloadItem,
) -> None:
if download_item.media.stream_info.audio_track.drm_free:
await self.base.download_stream(
download_item.media.stream_info.audio_track.stream_url,
download_item.staged_path,
)
else:
encrypted_path = self.base.get_temp_path(
download_item.media.media_metadata["id"],
download_item.uuid_,