Creating a custom nfo with tags

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
hxusar5yr7
Posts: 9
Joined: 29 Jun 2020, 11:59

Creating a custom nfo with tags

Post by hxusar5yr7 »

Hi,

I was hoping to be able to automatically create a custom nfo file for tv shows after doing "filebot -rename". I want just one file per series folder, and would like it to be in this type of format:

Code: Select all

<tvshow>
    <uniqueid type="tmdb" default="true">253463</uniqueid>
    <tvdb id="253463">https://www.thetvdb.com/dereferrer/series/253463</tvdb>
    <tag>HDR</tag>
    <tag>4K</tag>
    <tag>Blu-ray</tag>
</tvshow>
I am using the CLI with xattr saved in text files. Writing something to extract the TVDB id from net.filebot.metadata is trivial, but I'm not sure how I would get the HDR info, resolution, and source. If possible, I'd like to piggyback off Filebot as you're already parsing this information.

I'm decent with python & bash, but don't have any experience with Groovy.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Creating a custom nfo with tags

Post by rednoah »

You can use filebot -mediainfo to print custom --format lines.

e.g.

Code: Select all

filebot -mediainfo -r /series --format "{id};{hd};{bitdepth};{source};{f}"
:idea: Please read the FAQ and How to Request Help.
Post Reply