• 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 Development Feature Requests Cleaning of orphaned nfo files

     
    • 0 Vote(s) - 0 Average

    Cleaning of orphaned nfo files

    Geekphreek
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Oct
    Reputation: 0
    #1
    2024-11-03, 06:19 PM
    https://features.jellyfin.org/posts/2939...-nfo-files

    Does anyone else have this issue? You rename a video or three hundred and then a whole bunch of new NFO files show up, making the older ones redundant. I'm surprised NFO detoxing isn't part of the library scan. Is there a reason behind it not being?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,186
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2024-11-03, 06:35 PM (This post was last modified: 2024-11-03, 06:36 PM by Efficient_Good_5784. Edited 1 time in total.)
    I did. Though in my case, it's just in case I forget to delete the leftover NFO/image thumbnails when I delete/rename a video file.

    What I did to solve this issue is to create a script that compares all NFO and image files to the existing video files.
    If the filenames don't match up, they get deleted by my script.

    If I am to guess why this isn't built into Jellyfin, it's probably because users wouldn't want Jellyfin deleting all files except for those scanned into Jellyfin's database. Some people link their Jellyfin servers to libraries that are in use by some other apps/media servers.
    1
    hr33
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Feb
    Reputation: 0
    #3
    2025-02-22, 11:10 AM
    (2024-11-03, 06:35 PM)Efficient_Good_5784 Wrote: What I did to solve this issue is to create a script that compares all NFO and image files to the existing video files.
    If the filenames don't match up, they get deleted by my script.

    Can you please share the script code? Thanks!
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,186
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #4
    2025-02-22, 10:23 PM (This post was last modified: 2025-02-22, 10:25 PM by Efficient_Good_5784. Edited 1 time in total.)
    (2025-02-22, 11:10 AM)hr33 Wrote: Can you please share the script code? Thanks!
    I recommend you test run this script on data you don't care about first.
    Or if your server supports snapshots, take one of your data just in case it doesn't work for you and you want to revert any changes.
    I specifically made my script for my TrueNAS library, so I set the script to ignore any directories with ".zfs" to avoid looking in snapshot folders.

    https://github.com/maru801/jellyfin-scripts
    1
    « 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