Jellyfin Forum
ignore prefix - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: ignore prefix (/t-ignore-prefix)



ignore prefix - dacook - 2024-03-14

Hi,
I spent quite some time looking for a solution to have a prefix in the movie-directory-name, but havn´t found a solution yet.
Would you please be so kind to assist?
Is it possible to ignore a index-prefix (specified by a character, e.g. "_") in scraping?
 
example 1 numeric index:
Star.Trek.Collection
    01_Star.Trek.The.Motion.Picture.1979
        movie.mkv
        movie.nfo
    02_Star.Trek.The.Wrath.of.Khan.1982
        movie.mkv
        movie.nfo
    03_Star.Trek.The.Search.for.Spock.1984
        movie.mkv
        movie.nfo


example 2 date index:
Dustin.Hoffman.Collection
    1967_Die.Reifeprüfung
        movie.mkv
        movie.nfo
    1969_Asphalt.Cowboy
        movie.mkv
        movie.nfo
    1970_Little.Big.Man
        movie.mkv
        movie.nfo


RE: ignore prefix - TheDreadPirate - 2024-03-14

There is no way to ignore parts of a file name. What is the goal you are trying to achieve?


RE: ignore prefix - dacook - 2024-03-14

I want to have an index in my directory-name, so i can see it sorted in filemanger.
But the index breaks the scraping and jellyfin doesnt find the movie

in kodi there is "cleanstrings", but it only deletes stings to the right (e.g. resolution, codec, ...)
https://kodi.wiki/view/Advancedsettings.xml#cleanstrings

I would need to have a option (or config) to tell the scraper ignore everything to the left of eg. "_" and search then
01_Star.Trek.The.Motion.Picture.1979  --> Star.Trek.The.Motion.Picture.1979

I aslo tried to add it in system.xml , but it didn´t work:
Quote:  <SortRemoveWords>
    <string>01_</string>
    <string>02_</string>
    <string>03_</string>
    <string>04_</string>
    <string>05_</string>
    <string>06_</string>
    <string>07_</string>
    <string>08_</string>
    <string>09_</string>
    <string>10_</string>
  </SortRemoveWords>



RE: ignore prefix - TheDreadPirate - 2024-03-14

I am not sure what that setting does. May only affect the sorting behavior in the UI. For example, Jellyfin currently ignores "The" at the beginning of names for sorting purposes. Almost certainly doesn't change how the scrapper behaves when it queries for metadata.

Maybe this is just me, but I don't care how files/folders "look" or are sorted in the file system. Follow the docs for naming, make Jellyfin happy. Rarely interact with the files after that.


RE: ignore prefix - dacook - 2024-03-14

(2024-03-14, 06:54 PM)TheDreadPirate Wrote: Maybe this is just me, but I don't care how files/folders "look" or are sorted in the file system.  Follow the docs for naming, make Jellyfin happy.  Rarely interact with the files after that.

Thanks for your input / thoughts.
Maybe someone else can help me with the original question Winking-face


RE: ignore prefix - TheDreadPirate - 2024-03-14

The answer to the original question is that it isn't possible, as stated in my first response.


RE: ignore prefix - TheDreadPirate - 2024-03-14

Your other option is to use NFOs for metadata. I believe Sonarr can generate them and write them to disk? Same with Tiny Media Manager.