-
The duplicates plugin outputs a list of files, like this: $ beet duplicates --full --strict
/music/track_1.mp3
/music/track_1_copy.mp3
/music/track_1_copy_2.mp3
/music/different_track_a.mp3
/music/different_track_a_copy.mp3 Now I want to build some script, to decide which of the duplicates to keep or not. To process the duplicates, I need some sort of grouping or delimiter between duplicate blocks. For example rendering duplicates as JSON arrays would help a lot: [[
"/music/track_1.mp3",
"/music/track_1_copy.mp3",
"/music/track_1_copy_2.mp3"
],
[
"/music/different_track_a.mp3",
"/music/different_track_a_copy.mp3"
]] Or some other kind of raw group delimiter like /music/track_1.mp3
/music/track_1_copy.mp3
/music/track_1_copy_2.mp3
###
/music/different_track_a.mp3
/music/different_track_a_copy.mp3 Is there some simple way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Now, I tried the idea to kinda fake a grouping, using a custom format which includes the MusicBrainz ID: $ beet ls -f '$mb_trackid $path'
763cbf0a-ec5d-4739-87fb-c03306c0b65a /music/Venetian Snares/rossz csillag allat szuletett/oengyilkos vasarnap.mp3 But it looks like this does not work on the duplicates plugin: $ beet duplicates -f '$mb_trackid $path'
/music/Venetian Snares/rossz csillag allat szuletett/oengyilkos vasarnap.mp3 Any tips are highly appreciated! |
Beta Was this translation helpful? Give feedback.
I've done an extended version of the Beets Duplicates Plugin, called Duplicatez Plugin.
$ beet duplicatez
It has the same functionality as the original, as it inherits fom its class, but additionally outputs a
/output/beets-duplicates.json
file.