• 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 Troubleshooting Media Scanning & Identification Dealing with "New:" in Folder title

     
    • 0 Vote(s) - 0 Average

    Dealing with "New:" in Folder title

    Problems with scraping
    Elsmandino
    Offline

    Junior Member

    Posts: 4
    Threads: 3
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #1
    2024-02-15, 12:31 PM
    Hi there.

    I use TVHeadend to record all my TV programmes and then scrape that folder, automatically, into Jellyfin.

    However, I have an issue whereby my EPG will mark brand new episodes with "New:" at the beginning of the title.

    As such, I get "New:" at the beginning of the programme folder and all the individual episodes inside.

    When this happens, Jellyfin gets confused and will not pick up the show.

    Can anyone possibly suggest any way round this, please?  Is there a way for Jellyfin remove "New:" from the beginning of recordings or perhaps ignore it when scraping?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2024-02-15, 03:30 PM (This post was last modified: 2024-02-15, 03:32 PM by Efficient_Good_5784. Edited 1 time in total.)
    Jellyfin doesn't have that type of functionality to remove any string from file names.

    What you can do is create a script to do this for you.

    If your media is on a linux server, you can create a bash script that will:
    1. Find either all files of that type (and use grep to only get results with "New:"), or files that contain "New:" in the filename, and make a list of the found files.
    2. Use something like sed to replace all instances of "New:" as "".
    3. Pass on a new list of only edited filenames (along with their full paths).
    4. Use both the old and new lists to copy the actual files from their old names to their new names in the same path.
    5. Use the old list to remove the old files.

    You can then make a cron task that uses this script on a daily basis to rename your files for you.
    « 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