From aa3498b17ee2ca404d859fecb41b7d12acd7d2e8 Mon Sep 17 00:00:00 2001 From: Lev Plyusnin Date: Wed, 3 Jan 2024 16:42:24 +0700 Subject: [PATCH] Remove Musepack from supported formats --- yt_dlp/postprocessor/mutagenmetadata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yt_dlp/postprocessor/mutagenmetadata.py b/yt_dlp/postprocessor/mutagenmetadata.py index 7a2925ed88..8756163371 100644 --- a/yt_dlp/postprocessor/mutagenmetadata.py +++ b/yt_dlp/postprocessor/mutagenmetadata.py @@ -5,7 +5,6 @@ from mutagen.easymp4 import EasyMP4 from mutagen.flac import FLAC from mutagen.mp3 import EasyMP3 - from mutagen.musepack import Musepack from mutagen.oggopus import OggOpus from mutagen.oggvorbis import OggVorbis @@ -19,7 +18,7 @@ def run(self, information): extension = information['ext'] ret = [], information if not mutagen: - if extension in ['mp3', 'm4a', 'ogg', 'opus', 'flac', '.mpc']: + if extension in ['mp3', 'm4a', 'ogg', 'opus', 'flac']: self.report_warning('module mutagen was not found. Tags with multiple values (e.g. artist, album artist and genre) may be set incorrectly. Please install using `python -m pip install mutagen`') return ret tag_mapping = { @@ -28,7 +27,7 @@ def run(self, information): 'genre': 'genres', 'composer': 'composers' } - supported_formats = [EasyMP3, EasyMP4, OggVorbis, OggOpus, FLAC, Musepack] + supported_formats = [EasyMP3, EasyMP4, OggVorbis, OggOpus, FLAC] file = mutagen.File(information['filepath'], supported_formats) if not file: return ret