Reports for processed media files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
n0cturne
Posts: 4
Joined: 09 Nov 2022, 18:21

Reports for processed media files

Post by n0cturne »

Hi folks,

is there a possibility to generate a report, containing all media files which has been processed by FileBot?
I could imagine somthing like that:

Processed files
/oldpath/oldmediafilename1.mkv >>> /newpath/newmediafilename1.mkv
/oldpath/oldmediafilename2.mkv >>> /newpath/newmediafilename2.mkv
/oldpath/oldmediafilename3.mkv >>> /newpath/newmediafilename3.mkv

Unsorted filed
/oldpath/oldmediafilename4.mkv >>> /newpath/newmediafilename4.mkv
/oldpath/oldmediafilename5.mkv >>> /newpath/newmediafilename5.mkv

By myself I could write a bash script, which is parsing/regexing the log file.

Code: Select all

[MOVE] from [/input/Shameless.S01-S11.COMPLETE.GERMAN.AC3.720p.BluRay.x264-w00t - thewooter/Shameless.S01E01.Freibier.fuer.keinen.GERMAN.AC3.720p.BluRay.x264-w00t.mkv] to [/output/Series/Shameless/S01/Shameless - S01E01 - Episode #1.1.mkv]
[MOVE] from [/input/Shameless.S01-S11.COMPLETE.GERMAN.AC3.720p.BluRay.x264-w00t - thewooter/Shameless.S01E02.Suffnase.Frank.GERMAN.AC3.720p.BluRay.x264-w00t.mkv] to [/output/Series/Shameless/S01/Shameless - S01E02 - Episode #1.2.mkv]
[MOVE] from [/input/Shameless.S01-S11.COMPLETE.GERMAN.AC3.720p.BluRay.x264-w00t - thewooter/Shameless.S01E03.Der.Scheck.heiligt.die.Mittel.GERMAN.AC3.720p.BluRay.x264-w00t.mkv] to [/output/Series/Shameless/S01/Shameless - S01E03 - Episode #1.3.mkv]
[MOVE] from [/input/Shameless.S01-S11.COMPLETE.GERMAN.AC3.720p.BluRay.x264-w00t - thewooter/Shameless.S01E04.Nur.mal.spielen.GERMAN.AC3.720p.BluRay.x264-w00t.mkv] to [/output/Series/Shameless/S01/Shameless - S01E04 - Episode #1.4.mkv]
[MOVE] from [/input/Shameless.S01-S11.COMPLETE.GERMAN.AC3.720p.BluRay.x264-w00t - thewooter/Shameless.S01E05.Drei.Freunde.GERMAN.AC3.720p.BluRay.x264-w00t.mkv] to [/output/Series/Shameless/S01/Shameless - S01E05 - Episode #1.5.mkv]
But maybe there is a better, more comfortable and stable solution than my RegEx:

Code: Select all

\[[^\]]*\](\s+([a-zA-Z]+\s+)+)\[([^\]]*)\](\s+([a-zA-Z]+\s+)+)\[([^\]]*)\]
I'm excited about your ideas.

Best regards
Benjamin
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Reports for processed media files

Post by rednoah »

You can query the rename history like so:
rednoah wrote: 13 Nov 2012, 12:41 Print the entire rename history:

Code: Select all

filebot -script fn:history


Alternatively, you could use -exec custom post-process commands to write custom logs / insert database records / call webhooks / etc via your own shell script:
rednoah wrote: 14 Sep 2019, 19:43 e.g. call a custom script and pass along file paths and metadata:

Code: Select all

-exec /path/to/script.sh {f} {historic.f} {json}
:idea: Please read the FAQ and How to Request Help.
Post Reply