mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Require mp4decrypt for music videos
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user