Using Filebot to pull a list of show statuses

Any questions? Need some help?
Post Reply
CybeleAttis
Posts: 8
Joined: 05 Feb 2023, 01:46

Using Filebot to pull a list of show statuses

Post by CybeleAttis »

Hi, I'm wondering if there would be a way to use Filebot to pull show information and print in a list, similar to the missing episodes script, but looking at all shows (ie. any show with at least 1 file with xattr info pointing to it in the directory} and just producing a line for each show with the associated data values.

As an Example:

Code: Select all

"{n} - {sc} - {info.status}"
run on a directory, would hopefully produce something like this:

Code: Select all

Show A - 2 - Ended
Show B - 1 - Ended
Show C - 5 - Ongoing
Etc.
Trying to decide which shows to archive, and would be a useful way to extract this info quickly
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using Filebot to pull a list of show statuses

Post by rednoah »

:idea: sort and tee work with any command on any Unix shell. If you're on Windows, then you'll have to ask ChatGPT for a PowerShell equivalent.


e.g. you can use sort -u to sort and deduplicate lines and tee to print lines to both standard output and a text file:

Shell: Select all

filebot -mediainfo -r . --format "{n} | {sc} | {info.status}" | sort -u | tee status.txt

Console Output: Select all

$ filebot -mediainfo -r . --format "{n} | {sc} | {info.status}" | sort -u | tee status.txt
Alias | 5 | Ended
$ cat status.txt
Alias | 5 | Ended
:idea: Please read the FAQ and How to Request Help.
CybeleAttis
Posts: 8
Joined: 05 Feb 2023, 01:46

Re: Using Filebot to pull a list of show statuses

Post by CybeleAttis »

This worked perfectly! Thank you!
Post Reply