• 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
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Find duplicate entries in playlist - by pixel24 - 2023-08-26, 03:59 PM
    RE: Find duplicate entries in playlist - by TheDreadPirate - 2023-08-26, 04:48 PM
    RE: Find duplicate entries in playlist - by pixel24 - 2023-08-27, 07:21 AM

    • 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