mkpl
mkpl copied to clipboard
Filter out media by metadata
Description
I have a library of mp3 files (so I use -f mp3 flag in the command line) and I want to create several playlists based on metadata which I have stored in each mp3 file, such as:
- Genre
- Album
- Artist
- Year
I'd like to have an mkpl parameter where I can specify, for example, to include only Artist 1, Artist 2, and Artist 3 (for example) for one playlist, and then with another command run to create another playlist for Album 1 and Album 2 (for example).
Proposed names of the parameters (short and long)
- name parameter:
--filter [MetadataFieldName]=[Value] - possible argument(s):
--filter Genre=Pop// to filter out only media files which contain metadata "Genre" and which value is equal to "Pop".--filter Year=2024 --filter Year=2025// to filter out only media which contain metadata "Year" and which value is equal to whether 2024 or 2025.
This can be also applicable to any other media type, not only mp3.
Hi @hwndmaster, it's a good idea. I will implent in the next version.