How to check if a script is working?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
spetrillo
Posts: 67
Joined: 21 Jun 2015, 20:46

How to check if a script is working?

Post by spetrillo »

This is how I have my script setup to process my TV files:

Code: Select all

filebot -script fn:amc --output "E:/Media" --action move --conflict auto -non-strict "E:/Torrents/Complete" --log-file amc.log --def music=n --def clean=y --def deleteAfterExtract=y --def excludeList=amcexcl.txt --def plex=192.168.2.3:XXX --def reportError=y --def gmail=XXX
In doing some more reading on your site I red that if I call the script fn:amc that it will pull it from GitHub and then run it. Does that mean that all the options I have keyed will not be used? It seems to use everything from def music=n but is it not using action move conflict auto non-strict?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script Ok?

Post by rednoah »

1. Run it with --action test
2. Read at the output
3. Copy & paste the output
:idea: Please read the FAQ and How to Request Help.
spetrillo
Posts: 67
Joined: 21 Jun 2015, 20:46

Re: How to check if a script is working?

Post by spetrillo »

Ran it since I had episodes to process. Here is the output:

Code: Select all

Run script [fn:amc] at [Wed Oct 19 10:39:21 EDT 2016]
Parameter: music = n
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: excludeList = amcexcl.txt
Parameter: plex = *****
Parameter: reportError = y
Parameter: gmail = *****
Argument: E:\Torrents\Complete
Using excludes: E:\Media\amcexcl.txt (172)
Input: E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION.mkv
Input: E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS.mkv
Input: E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS.mkv
Input: E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\NCIS.S14E05.720p.HDTV.X264-DIMENSION.mkv
Input: E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO.mkv
Input: E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\This.Is.Us.S01E04.720p.HDTV.x264-FLEET.mkv
Exclude: E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\bull.104.720p-dimension.nfo
Exclude: E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg].torrent
Exclude: E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\chicago.fire.s05e02.720p.hdtv.x264-killers.nfo
Exclude: E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg].torrent
Exclude: E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\marvels.agents.of.s.h.i.e.l.d.s04e04.720p.hdtv.x264-killers.nfo
Exclude: E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg].torrent
Exclude: E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\ncis.1405.720p-dimension.nfo
Exclude: E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg].torrent
Exclude: E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\the.voice.s11e10.720p.hdtv.x264-alterego.nfo
Exclude: E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg].torrent
Exclude: E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\RARBG.com.txt
Exclude: E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\this.is.us.s01e04.720p.hdtv.x264-fleet.nfo
Exclude: E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg].torrent
Group: [tvs:bull 2016] => [Bull.2016.S01E04.720p.HDTV.X264-DIMENSION.mkv]
Group: [tvs:chicago fire] => [Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS.mkv]
Group: [tvs:marvels agents of s h i e l d] => [Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS.mkv]
Group: [tvs:ncis] => [NCIS.S14E05.720p.HDTV.X264-DIMENSION.mkv]
Group: [tvs:the voice] => [The.Voice.S11E10.720p.HDTV.x264-ALTEREGO.mkv]
Group: [tvs:this is us] => [This.Is.Us.S01E04.720p.HDTV.x264-FLEET.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Bull 2016]
Fetching episode data for [Bull (2016)]
[MOVE] Rename [E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION.mkv] to [E:\Media\TV Shows\Bull (2016)\Season 01\Bull (2016) - S01E04 - Callisto.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Chicago Fire]
Fetching episode data for [Chicago Fire]
Fetching episode data for [Chicago P.D.]
Fetching episode data for [Chicago Med]
Fetching episode data for [The Chicago Code]
[MOVE] Rename [E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS.mkv] to [E:\Media\TV Shows\Chicago Fire\Season 05\Chicago Fire - S05E02 - A Real Wake-Up Call.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Marvels Agents of S H I E L D]
Fetching episode data for [Marvel's Agents of S.H.I.E.L.D.]
[MOVE] Rename [E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS.mkv] to [E:\Media\TV Shows\Marvel's Agents of S.H.I.E.L.D\Season 04\Marvel's Agents of S.H.I.E.L.D. - S04E04 - Let Me Stand Next to Your Fire.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [NCIS]
Fetching episode data for [NCIS]
Fetching episode data for [NCIS: Los Angeles]
Fetching episode data for [NCIS: New Orleans]
[MOVE] Rename [E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\NCIS.S14E05.720p.HDTV.X264-DIMENSION.mkv] to [E:\Media\TV Shows\NCIS\Season 14\NCIS - S14E05 - Philly.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [The Voice]
Fetching episode data for [The Voice]
Fetching episode data for [The Voice (AR)]
Fetching episode data for [The Voice (GR)]
Fetching episode data for [The Voice (SA)]
Fetching episode data for [The Voice (KR)]
[MOVE] Rename [E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO.mkv] to [E:\Media\TV Shows\The Voice\Season 11\The Voice - S11E10 - The Battles, Part 4.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [This Is Us]
Fetching episode data for [This Is Us]
Fetching episode data for [This is Jinsy]
[MOVE] Rename [E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\This.Is.Us.S01E04.720p.HDTV.x264-FLEET.mkv] to [E:\Media\TV Shows\This Is Us\Season 01\This Is Us - S01E04 - The Pool.mkv]
Processed 1 files
Notify Plex: 192.168.2.3
GET: http://192.168.2.3:32400/library/sections/all/refresh?X-Plex-Token=
     [mail] Sending email: [FileBot] Bull.2016.S01E04.720p.HDTV.X264-DIMENSION, Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS, Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS, NCIS.S14E05.720p.HDTV.X264-DIMENSION, The.Voice.S11E10.720p.HDTV.x264-ALTEREGO, This.Is.Us.S01E04.720p.HDTV.x264-FLEET
     [mail] Sent email with 0 attachments
Clean clutter files and empty folders
Delete E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\bull.104.720p-dimension.nfo
Delete E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\chicago.fire.s05e02.720p.hdtv.x264-killers.nfo
Delete E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\marvels.agents.of.s.h.i.e.l.d.s04e04.720p.hdtv.x264-killers.nfo
Delete E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\ncis.1405.720p-dimension.nfo
Delete E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]\the.voice.s11e10.720p.hdtv.x264-alterego.nfo
Delete E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\RARBG.com.txt
Delete E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]\this.is.us.s01e04.720p.hdtv.x264-fleet.nfo
Delete E:\Torrents\Complete\This.Is.Us.S01E04.720p.HDTV.x264-FLEET[rarbg]
Delete E:\Torrents\Complete\The.Voice.S11E10.720p.HDTV.x264-ALTEREGO[rarbg]
Delete E:\Torrents\Complete\NCIS.S14E05.720p.HDTV.X264-DIMENSION[rarbg]
Delete E:\Torrents\Complete\Marvels.Agents.of.S.H.I.E.L.D.S04E04.720p.HDTV.x264-KILLERS[rarbg]
Delete E:\Torrents\Complete\Chicago.Fire.S05E02.720p.HDTV.x264-KILLERS[rarbg]
Delete E:\Torrents\Complete\Bull.2016.S01E04.720p.HDTV.X264-DIMENSION[rarbg]
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to check if a script is working?

Post by rednoah »

Is there anything in the log that doesn't seem right you'd like to point out?
:idea: Please read the FAQ and How to Request Help.
spetrillo
Posts: 67
Joined: 21 Jun 2015, 20:46

Re: How to check if a script is working?

Post by spetrillo »

In doing some more reading on your site I read that if I call the script fn:amc that it will pull it from GitHub and then run it. Does that mean that all the options I have keyed will not be used? It seems to use everything from def music=n but is it not using action move conflict auto non-strict?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to check if a script is working?

Post by rednoah »

No. Your command-line call passes your option on to the amc script which then processes files accordingly.
spetrillo wrote:but is it not using action move conflict auto non-strict
Yes, it's using them alright. Please point out any lines in the log that show behaviour that is in contrast to any of these options.

--action move => logs says it's moving files => OK
--conflict auto => no file are skipped, all files are considered newer/better and are processed accordingly => OK
-non-strict => it doesn't fail due to multiple options => OK
:idea: Please read the FAQ and How to Request Help.
spetrillo
Posts: 67
Joined: 21 Jun 2015, 20:46

Re: How to check if a script is working?

Post by spetrillo »

What might be helpful to us is if you list them in the beginning of the execution of the script, like the other options. This way I would not have thought they were not getting executed.
Post Reply