Generate NFO files from custom CSV database post-processing

Support for Ubuntu and other Desktop Linux distributions
Post Reply
hama4reall
Posts: 33
Joined: 13 May 2023, 12:21

Generate NFO files from custom CSV database post-processing

Post by hama4reall »

Hi there,
I have a specific task that requires your assistance. I possess a custom database containing translated descriptions, second titles(sub_title), TMDb IDs, IMDb IDs, custom poster filenames, and other relevant information (a CSV file is attached below).
My goal is to generate NFO files either post process of renaming a movie/show or based on existing renamed one. These NFO files should incorporate the translated descriptions, titles, and paths to custom posters as outlined in the CSV.
Thanks for your help.
User avatar
rednoah
The Source
Posts: 23390
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Generate NFO files from custom CSV database post-processing

Post by rednoah »

:idea: Unfortunately, the built-in --apply nfo post-processing feature does not allow for customization.


:arrow: If you mean to read your own CSV files, and then write new NFO files, perhaps in combination with existing NFO files or xattr metadata, then that is unfortunately out-of-scope here. It's basically writing your own code, so best to use whichever programming language you're most familiar with.




:idea: The aspect that I can help you with is extracting information from previously processed files with the filebot command:

Console Output: Select all

$ filebot -mediainfo -r /path/to/input --format "{type} | {tmdbid} | {n} | {country} | {language} | {certification} | {f}"
Episode | 2046 | Alias | US | eng | TV-14 | Alias - 1x01 - Truth Be Told.mkv
Movie | 19995 | Avatar | US | eng | PG-13 | Avatar (2009).mp4
:idea: Please read the FAQ and How to Request Help.
hama4reall
Posts: 33
Joined: 13 May 2023, 12:21

Re: Generate NFO files from custom CSV database post-processing

Post by hama4reall »

rednoah wrote: 06 Aug 2024, 04:01 :idea: The aspect that I can help you with is extracting information from previously processed files with the filebot command:

Console Output: Select all

$ filebot -mediainfo -r /path/to/input --format "{type} | {tmdbid} | {n} | {country} | {language} | {certification} | {f}"
Episode | 2046 | Alias | US | eng | TV-14 | Alias - 1x01 - Truth Be Told.mkv
Movie | 19995 | Avatar | US | eng | PG-13 | Avatar (2009).mp4
This is great it's a good starting point i can use the TMDd ID from this and find the matching data in my CSV then generate the nfo. I have made a small python script I'll post here if i get any success with it. I have a question though will filebot or jellyfin fill in the rest of the missing nfo info if i only include (title, sub_title, description, tagline, thumb, tmdbid, imdbid)?
User avatar
rednoah
The Source
Posts: 23390
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Generate NFO files from custom CSV database post-processing

Post by rednoah »

FileBot uses NFO files to help identify files, i.e. it'll only parse the ID number and that's about it. AFAIK, Plex / Jellyfin / etc do not really rely much on offline NFO information unless configured to do so, but you'd have to run your own tests to confirm. Best to ask the Plex or Jellyfin community directly.
:idea: Please read the FAQ and How to Request Help.
Post Reply