Default to {n} if {ny} does not work due to {y} being undefined

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Default to {n} if {ny} does not work due to {y} being undefined

Post by pax0707 »

For some reason, there's no series name in rename.
All other series work fine.

Code: Select all

FileBot 4.8.2 (r5710)
JNA Native: 5.2.0
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-07-15 (r530)
Groovy: 2.5.0
JRE: Java(TM) SE Runtime Environment 10.0.1
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 34 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
License: FileBot License P4058384 (Valid-Until: 2019-07-15)

Code: Select all

Input: D:\Done\BTN\Take.Two.S01E03.720p.HDTV.x264-AVS.mkv
Input: D:\Done\BTN\take.two.s01e04.720p.web.x264-tbs.mkv
xattr: [Take.Two.S01E03.720p.HDTV.x264-AVS.mkv] => [Take Two - 1x03 - Taken]
xattr: [take.two.s01e04.720p.web.x264-tbs.mkv] => [Take Two - 1x04 - Ex's and Oh's]
Group: [tvs:take two] => [Take.Two.S01E03.720p.HDTV.x264-AVS.mkv, take.two.s01e04.720p.web.x264-tbs.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Take Two]
Fetching episode data for [Take Two]
Fetching episode data for [Take Two with Phineas and Ferb]
[HARDLINK] from [D:\Done\BTN\Take.Two.S01E03.720p.HDTV.x264-AVS.mkv] to [D:\Done\SERIJE\- S01E03 - Taken [720p HDTV x264 AVS].mkv]
[HARDLINK] from [D:\Done\BTN\take.two.s01e04.720p.web.x264-tbs.mkv] to [D:\Done\SERIJE\- S01E04 - Ex's and Oh's [720p x264 TBS].mkv]
Processed 2 files
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Issue with Taek Two series

Post by rednoah »

What command are you running? What's your format?
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Issue with Taek Two series

Post by pax0707 »

Forgot to check notify on reply so didn't see your reply.

Code: Select all

filebot.launcher -script fn:amc "D:/Done/BTN" --db TheTVDB --output "D:/Done/SERIJE" --log-file "D:/Filebot/log/btn.log" --action hardlink --conflict auto -non-strict --def "seriesFormat=D:/Done/SERIJE/{ny} - {s00e00} - {t} [{vf} {source} {vc} {group}]" --def "animeFormat=D:/Done/ANIME/{ny} - {s00e00} - {t} [{vf} {source} {vc} {group}]" --def excludeList="D:/Filebot/exclude/btn.txt" --def unsorted=y --def myepisodes=xxxx:xxxx --def plex=localhost:xxxx --def gmail=xxxxx:xxxx --def reportError=y --def [email protected]
Last edited by pax0707 on 22 Jul 2018, 01:17, edited 1 time in total.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Issue with Taek Two series

Post by pax0707 »

Another one.

Code: Select all

Input: D:\Done\BTN\Who.Is.America.S01E01.Who.Is.America.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
Group: [tvs:who is america] => [Who.Is.America.S01E01.Who.Is.America.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [who is america]
Fetching episode data for [Who Is America?]
Fetching episode data for [In America]
[HARDLINK] from [D:\Done\BTN\Who.Is.America.S01E01.Who.Is.America.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv] to [D:\Done\SERIJE\- S01E01 - Episode 1 [720p WEB-DL AVC NTb].mkv]
Processed 1 files
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Issue with Taek Two series

Post by rednoah »

Looks like {y} errors out and doesn't work for this particular series, probably because the series dates haven't been entered yet.

Presumably, you'll want to default to {n} if {ny} doesn't work:

Code: Select all

any{ny}{n}
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Default to {n} if {ny} does not work due to {y} being undefined

Post by pax0707 »

OK, I'll try that.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Default to {n} if {ny} does not work due to {y} being undefined

Post by pax0707 »

Working as expected.
Cheers.
Post Reply