New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new post processor: MutagenMetadataPP #8918
base: master
Are you sure you want to change the base?
Conversation
- Moved fix_deprecated_fields into _fill_common_fields
This reverts commit 2598790.
Note to self: After #8869, make this obey the compat option |
Do we need to run ffmpeg and then mutagen? Or can we embed all the fields with mutagen in these formats? |
Yes, we can embed all of the fields via mutagen. I can implement this as we originally discussed in #3944. For some reason i thought that the solution with |
If embedding everything with mutagen has no downsides, that's better. Then we don't have to run two pass. Ffmpeg can be used as fallback if (1) mutagen errors (2) unsupported format (3) |
Description of your pull request and other information
This post processor was introduced in #8917. It's meant to write multi-value fields with proper separation and it does so by using mutagen.
I've tested it on all formats listed in
supported_formats
. The following script was used for testing:Output
Each file format works great in my music player (Lollypop), except for .m4a, which shows only the first artist. It seems like it's an issue with a format itself12. QuickTime documentation does not specify proper way of setting multiple values for one field, so every piece of software does it's own thing.
I can think of this solutions for this problem:
MutagenMetadataPP
, letFFMpegMetadataPP
separate fields with commas. Maybe add argument for specifying custom delimiters, such as+
or;
.Template
Before submitting a pull request make sure you have:
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:
What is the purpose of your pull request?
Footnotes
https://hydrogenaud.io/index.php/topic,68781.0.html ↩
https://community.mp3tag.de/t/how-to-create-multiple-artist-tags-on-one-track-in-itunes ↩