2023-08-26, 04:48 PM
In my testing I cannot add the same listing for a song more than once to a playlist. I am then assuming these are duplicate music files in the file system.
In the Jellyfin UI, I am not aware of a way to sort playlists. I'm hoping you are on Linux. With some Linux bash sorting you can find duplicates in the playlist.xml if the file names are the same.
If these are duplicate songs within your file system, the better solution is use something like dupeGuru. In addition to looking for duplicate file names, it can also analyze the contents to find duplicate files with different file names.
https://dupeguru.voltaicideas.net/
I recommend backing up whatever folder you analyze. I didn't have issues with false positives when I was trimming dupes in my music collection, but it is better to be safe.
In the Jellyfin UI, I am not aware of a way to sort playlists. I'm hoping you are on Linux. With some Linux bash sorting you can find duplicates in the playlist.xml if the file names are the same.
Code:
cd /var/lib/jellyfin/data/playlists/TestPlaylist
grep Path playlist.xml | sed 's/<Path>//g' | sed 's/<\/Path>//g' | awk -F '/' '{print $NF}' | sort | uniq -c
1 00 Lilium.mp3
1 01 2112.mp3
1 04 Castle.mp3
If these are duplicate songs within your file system, the better solution is use something like dupeGuru. In addition to looking for duplicate file names, it can also analyze the contents to find duplicate files with different file names.
https://dupeguru.voltaicideas.net/
I recommend backing up whatever folder you analyze. I didn't have issues with false positives when I was trimming dupes in my music collection, but it is better to be safe.