From 91db55adc3f132b11232deaac3e002aebeec7203 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:49:44 -0300 Subject: [PATCH] Require mp4decrypt for music videos --- gamdl/downloader/downloader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamdl/downloader/downloader.py b/gamdl/downloader/downloader.py index c45365e..814ba58 100644 --- a/gamdl/downloader/downloader.py +++ b/gamdl/downloader/downloader.py @@ -209,6 +209,9 @@ class AppleMusicDownloader: "music-videos", "library-music-videos", }: + if not self.base.full_mp4decrypt_path: + raise GamdlDownloaderDependencyNotFoundError("mp4decrypt") + if ( self.music_video.remux_mode == RemuxMode.FFMPEG and not self.base.full_ffmpeg_path @@ -218,11 +221,8 @@ class AppleMusicDownloader: if ( self.music_video.remux_mode == RemuxMode.MP4BOX and not self.base.full_mp4box_path - and not self.base.full_mp4decrypt_path ): - raise GamdlDownloaderDependencyNotFoundError( - "MP4Box and/or mp4decrypt" - ) + raise GamdlDownloaderDependencyNotFoundError("MP4Box") await self.music_video.download(item)