series naming does not include year anymore

Any questions? Need some help?
Post Reply
mrksjs
Posts: 2
Joined: 20 Sep 2018, 12:29

series naming does not include year anymore

Post by mrksjs »

Hi
loving filebot node on my synology, it worked perfectly until i upgraded via synology package center a few days ago. it was installed via spk.

I bought and installed the license after the upgrade and movie moving/renaming seems to work fine, however with series I have a problem now:

result:

Code: Select all

filebot -script 'fn:amc' /volume1/_DL/_filebot_working_directory --output /volume1/ --action TEST -non-strict --order Airdate --conflict auto --lang en --def 'music=y' 'unsorted=y' 'artwork=y' 'subtitles=eng' 'clean=y' 'skipExtract=y' 'seriesFormat=_SERIEN/{n} {y}/{n.upperInitial().space('\''.'\'')}.{s00e00}.{t.upperInitial().space('\''_'\'')}.{vf}.{vc}.{ac}' 'animeFormat=_SERIEN/{ny}/{n.upperInitial().space('\''.'\'')}.{s00e00}.{t.upperInitial().space('\''_'\'')}.{vf}.{vc}.{ac}' 'movieFormat=_FILME/{ny}/{n.upperInitial().space('\''_'\'')}.{y}.{vf}.{vc}.{ac}' 'musicFormat=_DL/_Unsorted/_music/{fn}.{ext}' 'unsortedFormat=_DL/_Unsorted/{fn}.{ext}' 'excludeList=/volume1/_DL/_filebot_working_directory/.excluded/.excludes' --log all --log-file '/volume1/@appstore/filebot-node/data/filebot.log'

------------------------------------------

x86_64
Locking /volume1/@appstore/filebot-node/data/filebot.log
Run script [fn:amc] at [Thu Sep 20 14:23:20 CEST 2018]
Parameter: music = y
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = eng
Parameter: clean = y
Parameter: skipExtract = y
Parameter: seriesFormat = _SERIEN/{n} {y}/{n.upperInitial().space('.')}.{s00e00}.{t.upperInitial().space('_')}.{vf}.{vc}.{ac}
Parameter: animeFormat = _SERIEN/{ny}/{n.upperInitial().space('.')}.{s00e00}.{t.upperInitial().space('_')}.{vf}.{vc}.{ac}
Parameter: movieFormat = _FILME/{ny}/{n.upperInitial().space('_')}.{y}.{vf}.{vc}.{ac}
Parameter: musicFormat = _DL/_Unsorted/_music/{fn}.{ext}
Parameter: unsortedFormat = _DL/_Unsorted/{fn}.{ext}
Parameter: excludeList = /volume1/_DL/_filebot_working_directory/.excluded/.excludes
Argument[0]: /volume1/_DL/_filebot_working_directory
Use excludes: /volume1/_DL/_filebot_working_directory/.excluded/.excludes (8)
Ignore hidden: /volume1/_DL/_filebot_working_directory/.excluded
Ignore system path: /volume1/_DL/_filebot_working_directory/@eaDir
Input: /volume1/_DL/_filebot_working_directory/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.eng.srt
Input: /volume1/_DL/_filebot_working_directory/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv
xattr: [Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv] => [Who Is America? - 1x01 - Episode 1]
Group: [tvs:peng life] => [Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.eng.srt]
Group: [tvs:who is america] => [Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Peng Life, Who Is America]
Fetching episode data for [Peng Life]
Fetching episode data for [Who Is America?]
Fetching episode data for [In America]
Stripping invalid characters from new path: _SERIEN/Who Is America?/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3
[TEST] from [/volume1/_DL/_filebot_working_directory/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.eng.srt] to [/volume1/_SERIEN/Who Is America/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.srt]
Processed 1 files
No missing subtitles
Rename episodes using [TheTVDB]
Auto-detected query: [Who Is America?]
Fetching episode data for [Who Is America?]
Fetching episode data for [In America]
Stripping invalid characters from new path: _SERIEN/Who Is America?/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3
[TEST] from [/volume1/_DL/_filebot_working_directory/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv] to [/volume1/_SERIEN/Who Is America/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
------------------------------------------

[Process completed]

expected result:
{ny} or {n} {y} includes the name + startdate.year of the tv show

Code: Select all

[TEST] from [/volume1/_DL/_filebot_working_directory/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv] to [/volume1/_SERIEN/Who Is America (2018)/Who.Is.America.S01E01.Episode_1.1080p.AVC.EAC3.mkv]

and i really wonder why the script is extracting / getting "Group: [tvs:peng life]" this info every time! I can't see if that tv show is written in the xattr anywhere.


sysinfo:

Code: Select all

filebot -script 'fn:sysinfo'

------------------------------------------

x86_64
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 17.12
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-08-14 (r534)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 1.8.0_131
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 2 GB Max Memory / 17 MB Used Memory
OS: Linux (amd64)
HW: Linux xxx 3.10.105 #23739 SMP Wed Jun 20 22:40:01 CST 2018 x86_64 GNU/Linux synology_cedarview_1513+
DATA: /volume1/@appstore/filebot/data/admin
Package: SPK
License: FileBot License xxxxxxxxx
Done ヾ(@⌒ー⌒@)ノ
------------------------------------------

[Process completed]
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: series naming does not include year anymore

Post by rednoah »

1.
It seems that the First Aired field has not be filled out yet by the community, and thus {startdate} and {y} don't work:
https://www.thetvdb.com/series/who-is-america

:idea: You can add the missing information by signing up to TheTVDB and editing the series record.


2.
peng life is caused by something else. Maybe the directory structure somehow. Maybe a nfo file somewhere. Can't say for sure. You could run a few tests, in different folders, e.g. rename "_filebot_working_directory" to just "_tmp".
:idea: Please read the FAQ and How to Request Help.
mrksjs
Posts: 2
Joined: 20 Sep 2018, 12:29

Re: series naming does not include year anymore

Post by mrksjs »

now it makes total sense!

thank you for getting back to me so quickly. love your work!
konglong
Posts: 3
Joined: 02 Sep 2017, 22:52

Re: series naming does not include year anymore

Post by konglong »

The missing start date is a known bug for all new series on TVDB since the launch of V2. There is still no fix.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: series naming does not include year anymore

Post by rednoah »

It works for most of the shows I can think of. I guess there's maybe an issue with the field not being filled with newer entries.

As a possible workaround you can use right now, just access the full episode list and then find the minimum airdate year like so:

Code: Select all

{episodelist.airdate.year.min()}

EDIT:

Future revision will use this workaround implicitly when using bindings such as {y} or {startdate}.
:idea: Please read the FAQ and How to Request Help.
DavidRTurner
Power User
Posts: 85
Joined: 01 Feb 2014, 16:59

Re: series naming does not include year anymore

Post by DavidRTurner »

Hi, red - I've just found a situation that my formats don't cover.
A new series "What We Do in the Shadows", which has a 2019 season year, had its pilot movie from 2014 entered into TheTVDB as a Special.

As a result, the {episodelist.airdate.year.min()} is now 2014, rather than 2019 for the 'Season 1' year.

I know that {sy} would result in "[2019]" as one way, but I don't want the hard brackets, and can't find the right padding code to strip them.

Any thoughts on getting something like {S01.episodelist.airdate.year.min()} ?

Thanks much!
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: series naming does not include year anymore

Post by kim »

Code: Select all

{sy[0]}

Code: Select all

{sy.join()}

Code: Select all

{sy.first()}

Code: Select all

{episodelist.findAll{it.season}.airdate.year.min()}

Code: Select all

{episodelist.findAll{it.season == 1}.airdate.year.min()}

Code: Select all

{episodelist.findAll{it.special}.airdate.year.min()}
DavidRTurner
Power User
Posts: 85
Joined: 01 Feb 2014, 16:59

Re: series naming does not include year anymore

Post by DavidRTurner »

Hey, Kim - so sorry I never replied; I don't recall seeing this reply...
In any case, nothing has worked for my format.

Or, let me re-phrase: Nothing has worked for MY format... all of these code samples work as intended, but within my format, something is still giving an error.

Snippet at issue:

Code: Select all

{AdjustedSeriesFolderName =~ (/\((?i)\b\d{4}\b/) ? '' : ' (' + {episodelist.airdate.year.min()} + ')'}\S{episode.special ? '00-Specials' : episode.season.pad(2)}\{AdjustedSeriesFolderName} 
After pulling a mapped Series name from a CSV (i.e. I prefer DS9 instead of the full name), the AdjustedSeriesFolderName tests for a year field in the field (this works); then looks for the starting year; then puts the files in season folders with the Adjusted name.
However, something particular about the full line is the root of the issue; each segment works fine, but in this full line, since the last version of FB, I get a "Script167$_run_closure1@sdvhbjsvjkhsbdv" error instead of the start year.

After months of testing, I'm still stumped... any thoughts?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: series naming does not include year anymore

Post by kim »

just remove {} from

Code: Select all

{episodelist.airdate.year.min()}
but remember your problem before ?
so better you use (without the {}):

Code: Select all

{episodelist.findAll{it.season}.airdate.year.min()}
or

Code: Select all

{episodelist.find{it.season == 1 && it.episode == 1}.airdate.year}

btw:

Code: Select all

{ n.replace('Deep Space Nine', 'DS9') }
DavidRTurner
Power User
Posts: 85
Joined: 01 Feb 2014, 16:59

Re: series naming does not include year anymore

Post by DavidRTurner »

Thanks - removing the braces seems to have done the trick.

*I know I can replace names with the replace function; I have a lot, which fill up the FB buffer - so I have to use an external CSV file.
Post Reply