Automatic renaming and deleting of folders
by elsmandino from LinuxQuestions.org on (#6JQXY)
Hi there.
I currently have a home server, running Openmediavault.
I use TVHeadend to record TV Shows to a folder that is automatically scraped into Kodi by Jellyfin.
I have an issue, however.
When the episode is new, the folder is named with "New" in the title and this confuses Jellyfin.
Is there any way to automatically remove the phrase "New:" from the beginning of any folder in my TV Shows folder?
Also, because of the way that Jellyfin removes recordings, I often end up with empty folders. Is there any way to also automatically remove any empty folders from my TV Series folder as well?
Thanks very much.
I currently have a home server, running Openmediavault.
I use TVHeadend to record TV Shows to a folder that is automatically scraped into Kodi by Jellyfin.
I have an issue, however.
When the episode is new, the folder is named with "New" in the title and this confuses Jellyfin.
Is there any way to automatically remove the phrase "New:" from the beginning of any folder in my TV Shows folder?
Also, because of the way that Jellyfin removes recordings, I often end up with empty folders. Is there any way to also automatically remove any empty folders from my TV Series folder as well?
Thanks very much.