Page 1 of 1

Using Filebot to pull a list of show statuses

Posted: 24 Jul 2023, 04:14
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

Re: Using Filebot to pull a list of show statuses

Posted: 24 Jul 2023, 04:43
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

Re: Using Filebot to pull a list of show statuses

Posted: 24 Jul 2023, 06:46
by CybeleAttis
This worked perfectly! Thank you!