• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Find duplicate entries in playlist

     
    • 0 Vote(s) - 0 Average

    Find duplicate entries in playlist

    I want to find duplicate tracks in playlists to delete them
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #1
    2023-08-26, 03:59 PM
    Hi@all,

    I love randomness and listening to music across genres. This is also great in Jellyfin. Whether at home on the computer or on the road in the car with the Jellyfin app. I open my Bilbilothe and start the random playback. Regularly songs are played that I really like and I did not know yet. These are then inserted into various playlists. Sometimes it happens that the same song is inserted several times.

    Do I have a way to show me duplicate entries in playlists? Or sort the playlist by title to find multiple entries?

    with best
    pixel24
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    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.

    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #3
    2023-08-27, 07:21 AM
    Sorry for this misinformation! I have tested it. If I add a track to a playlist by mistake no message is displayed. But Jellyfin adds the track only once :-)

    Yes, I use Linux.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode