Page 1 of 1

Creating a custom nfo with tags

Posted: 01 Jul 2020, 15:22
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.

Re: Creating a custom nfo with tags

Posted: 01 Jul 2020, 16:01
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}"