mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 07:06:52 +01:00
Remove Musepack from supported formats
This commit is contained in:
parent
bbc5ee2b97
commit
aa3498b17e
@ -5,7 +5,6 @@
|
|||||||
from mutagen.easymp4 import EasyMP4
|
from mutagen.easymp4 import EasyMP4
|
||||||
from mutagen.flac import FLAC
|
from mutagen.flac import FLAC
|
||||||
from mutagen.mp3 import EasyMP3
|
from mutagen.mp3 import EasyMP3
|
||||||
from mutagen.musepack import Musepack
|
|
||||||
from mutagen.oggopus import OggOpus
|
from mutagen.oggopus import OggOpus
|
||||||
from mutagen.oggvorbis import OggVorbis
|
from mutagen.oggvorbis import OggVorbis
|
||||||
|
|
||||||
@ -19,7 +18,7 @@ def run(self, information):
|
|||||||
extension = information['ext']
|
extension = information['ext']
|
||||||
ret = [], information
|
ret = [], information
|
||||||
if not mutagen:
|
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`')
|
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
|
return ret
|
||||||
tag_mapping = {
|
tag_mapping = {
|
||||||
@ -28,7 +27,7 @@ def run(self, information):
|
|||||||
'genre': 'genres',
|
'genre': 'genres',
|
||||||
'composer': 'composers'
|
'composer': 'composers'
|
||||||
}
|
}
|
||||||
supported_formats = [EasyMP3, EasyMP4, OggVorbis, OggOpus, FLAC, Musepack]
|
supported_formats = [EasyMP3, EasyMP4, OggVorbis, OggOpus, FLAC]
|
||||||
file = mutagen.File(information['filepath'], supported_formats)
|
file = mutagen.File(information['filepath'], supported_formats)
|
||||||
if not file:
|
if not file:
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user