Page 1 of 1
AMC script and matching problem
Posted: 07 Feb 2016, 12:23
by panda78
hi all ,
i make my script using in osx :
Code: Select all
filebot -script 'fn:amc' /Users/Andrea/Desktop/INPUT --output //Users/Andrea/Desktop/OUTPUT --action move --conflict auto --lang it --def 'artwork=y' 'extras=y' 'subtitles=ita' 'clean=y' 'skipExtract=y' 'excludeList=esclusi.txt'
for now 80% of my episodes work fina but i have some problem with a tv show , The Flash 2014.
If i try to rename an episode of this show with FB gui i have a popup with a list of possible shows "the flash 2014 , the flash , flash, etc ". In this case i choose the correct show and everything works fine ,
instead If i use the sript the episode will not renamed.
How can i solve this type of situation ?
Thnks to all and sorry for my bed english
Re: AMC script and matching problem
Posted: 07 Feb 2016, 13:35
by rednoah
What does the console output say?
FAQ wrote:Include the cmdline call and any output or logs.
@see
viewtopic.php?f=6&t=1868
1.
Use
--action test for testing.
2.
-non-strict (recommended, see all examples) and
--filter (user-specific customizations, see Advanced Fine-Tuning section) can be used to fine-tune behaviour.
Re: AMC script and matching problem
Posted: 07 Feb 2016, 14:16
by panda78
rednoah wrote:What does the console output say?
FAQ wrote:Include the cmdline call and any output or logs.
@see
viewtopic.php?f=6&t=1868
1.
Use
--action test for testing.
2.
-non-strict (recommended, see all examples) and
--filter (user-specific customizations, see Advanced Fine-Tuning section) can be used to fine-tune behaviour.
solved with -non-strict .
now i try filters option . thanks
Re: AMC script and matching problem
Posted: 07 Feb 2016, 20:56
by panda78
i'm trying to use --filter but i don't understand
i use this script
filebot -script fn:amc /Users/Andrea/Desktop/INPUT/ --output /Users/Andrea/Desktop/OUTPUT --action move --conflict auto -non-strict --lang ita --def artwork=y --def clean=y --filter "age < 7" excludeList=escluded.txt
into INPUT some episodes of Supergirl tv show and into OUTPUT nothing
the result is :
Run script [fn:amc] at [Sun Feb 07 21:54:46 CET 2016]
Parameter: artwork = y
Parameter: clean = y
Argument: /Users/Andrea/Desktop/INPUT
Argument: /Users/Andrea/excludeList=escluded.txt
File not found: /Users/Andrea/excludeList=escluded.txt
Failure (°_°)
Re: AMC script and matching problem
Posted: 08 Feb 2016, 07:40
by rednoah
Re: AMC script and matching problem
Posted: 09 Feb 2016, 14:21
by panda78
rednoah sorry but i'm testing some scrpts to improve my knowledge of filebot.
what command i have to use to see a full list of options?
es : i want to learn more about --filter and i need to see all options available .
there is a way to see all filebot option ?
thanks a lot
Andrea
Re: AMC script and matching problem
Posted: 09 Feb 2016, 14:51
by rednoah
1.
2.
--filter and
--format are scriptable, so there is an infinite number of possible filter/format expressions.
You can explore <some> of the available bindings in the Format Editor:
--format and
--filter work exactly the same. Except that a format can contain literals and {expressions} that evaluate to text, whereas the filter is one single expression that evaluates to true or false. Also, all file-based bindings like {fn} will fail in the
--format and you can only use Episode/Movie bindings like n, sxe, age, etc
Re: AMC script and matching problem
Posted: 09 Feb 2016, 15:12
by panda78
i look quickly and i dont understand how to solve a little script
i'm making some tests with one episode of
"The Flash (2014)"
from the script down i find multiples series matching with "the flash"
Code: Select all
filebot.exe" -script fn:amc --output C:\Users\aartoni\Desktop\output --action copy C:\Users\aartoni\Desktop\input --lang it --def artwork=y extras=y
Run script [fn:amc] at [Tue Feb 09 14:42:35 CET 2016]
Parameter: artwork = y
Parameter: extras = y
Argument: C:\Users\aartoni\Desktop\input
Input: C:\Users\aartoni\Desktop\input\The.Flash.2x05.Dottor.Light.ITA.DLMux.x264-UBi.mkv
Group: [tvs:the flash] => [The.Flash.2x05.Dottor.Light.ITA.DLMux.x264-UBi.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Flash]
CmdlineException: Multiple options: Force auto-select requires non-strict matching: [The Flash, The Flash (2014), The Flash (1967), The New Animated Adventures of Flash Gordon, Flash Gordon]
Finished without processing any files
Failure (°_°)
so i make a query to understand how to filter my script and i use --q the flash like autodetect query of my amc script
Code: Select all
"C:\Program Files\FileBot\filebot.exe" -list --q "the flash" --filter "age > 31"
result
- The Flash - 1x01 - Pilot
The Flash - 1x02 - Out of Control
The Flash - 1x03 - Watching the Detectives
etc.........
i suppose the last flash airdate in the last 31 days is the flash 2014 but the script result me the flas ( tv shows '80s)
were i wrong ?
little edit: if i run amc script with -non-strict the match is correct but the artwork not matching and the cover/poster are from '80s show
Thanks
Re: AMC script and matching problem
Posted: 09 Feb 2016, 16:22
by rednoah
1.
--filter can't be used to make
strict mode less strict.
--filter can be used to help match the correct Episode, but it can't help with artwork. The
-list command is inherently different from
-rename because
--q is your query, while
-rename uses auto-detection and will consider multiple queries.
2.
Looks good to me:
Code: Select all
[COPY] Rename [The.Flash.2x05.Dottor.Light.ITA.DLMux.x264-UBi.mkv] to [TV Shows/The Flash (2014)/Season 02/The Flash (2014) - S02E05 - The Darkness and the Light.mkv]
Processed 1 files
Fetching series artwork for [The Flash (2014)] to [TV Shows/The Flash (2014)/Season 02]
Fetching TV Shows/The Flash (2014)/poster.jpg => {id=1098664, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/279121-28.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=8.1379, RatingCount=29}
Fetching TV Shows/The Flash (2014)/banner.jpg => {id=1040605, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/279121-g7.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=7.3636, RatingCount=11}
Fetching TV Shows/The Flash (2014)/fanart.jpg => {id=1039292, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/279121-9.jpg, BannerType=fanart, BannerType2=1920x1080, Colors=|44,49,68|53,60,79|45,52,71|, Language=en, Rating=8.7500, RatingCount=28, SeriesName=false, ThumbnailPath=_cache/fanart/original/279121-9.jpg, VignettePath=fanart/vignette/279121-9.jpg}
Fetching TV Shows/The Flash (2014)/Season 02/poster.jpg => {id=1107637, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/279121-2-3.jpg, BannerType=season, BannerType2=season, Season=2, Language=en, Rating=10.0000, RatingCount=3}
Banner not found: TV Shows/The Flash (2014)/Season 02/banner.jpg / season:seasonwide
Fetching TV Shows/The Flash (2014)/clearart.png => {type=hdclearart, id=45187, url=http://assets.fanart.tv/fanart/tv/279121/hdclearart/the-flash-2014-542d0af428049.png, lang=en, likes=13}
Fetching TV Shows/The Flash (2014)/logo.png => {type=hdtvlogo, id=40652, url=http://assets.fanart.tv/fanart/tv/279121/hdtvlogo/the-flash-2014-53786eca2610e.png, lang=en, likes=14}
Fetching TV Shows/The Flash (2014)/landscape.jpg => {type=tvthumb, id=47996, url=http://assets.fanart.tv/fanart/tv/279121/tvthumb/the-flash-2014-54c8f7b74e4f2.jpg, lang=en, likes=6}
Fanart not found: TV Shows/The Flash (2014)/Season 02/landscape.jpg / seasonthumb
I've tried with --lang it and that works as well. But keep in mind that "The Flash (2014)" is called just "The Flash" in Italian.