Error grouping multipart movie

All about user-defined episode / movie / file name format expressions
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Error grouping multipart movie

Post by devster »

I have a movie split into 2 files (CD1 and CD2), both files are in the same folder, last time they were pre-processed they were correctly tagged:

Code: Select all

# file: Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi
user.net.filebot.filename="Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi"
user.net.filebot.metadata="{\"@type\":\"MoviePart\",\"partIndex\":1,\"partCount\":2,\"year\":1997,\"imdbId\":119792,\"tmdbId\":21252,\"language\":\"en\",\"id\":21252,\"name\":\"Nil by Mouth\",\"aliasNames\":[]}"

# file: Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi
user.net.filebot.filename="Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi"
user.net.filebot.metadata="{\"@type\":\"MoviePart\",\"partIndex\":2,\"partCount\":2,\"year\":1997,\"imdbId\":119792,\"tmdbId\":21252,\"language\":\"en\",\"id\":21252,\"name\":\"Nil by Mouth\",\"aliasNames\":[]}"
As can be seen from the above both have partIndex and partCount.
I'm moving everything I have to a Ceph cluster and I reprocessed some of them, the following is command and output:

Code: Select all

$ /usr/bin/filebot -script fn:amc --action test --output /cephfs/Media --conflict skip -non-strict --log-file amc.log --def @/scripts/notify.txt --def movieFormat=@/scripts/movieFormat.groovy --def seriesFormat=@/scripts/seriesFormat.groovy --def animeFormat=@/scripts/animeFormat.groovy /cephfs/Media/dispenser/movies
...
Argument[0]: /cephfs/Media/dispenser/movies
...
xattr: [Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi] => [Nil by Mouth (1997) [CD1]]
xattr: [Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi] => [Nil by Mouth (1997) [CD2]]
...
Group: [Movie:Nil by Mouth (1997) [CD1]] => [Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi]
Group: [Movie:Nil by Mouth (1997) [CD2]] => [Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi]
...
Rename movies using [TheMovieDB]
[TEST] from [/cephfs/Media/dispenser/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi] to [/cephfs/Media/LQ_Movies/Nil by Mouth (1997) [Gary Oldman]/Nil by Mouth (1997) [360p XviD - 2.0 MP3 - DVDRip]-PHOBOS.avi]
Processed 1 files
Rename movies using [TheMovieDB]
[TEST] from [/cephfs/Media/dispenser/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi] to [/cephfs/Media/LQ_Movies/Nil by Mouth (1997) [Gary Oldman]/Nil by Mouth (1997) [360p XviD - 2.0 MP3 - DVDRip]-PHOBOS.avi]
Processed 1 files
Rename movies using [TheMovieDB]
everything seems fine until I went back to read my format:

Code: Select all

{
allOf
  // Movies directory
  { def film_directors = info.directors.sort().join(", ")
    n.colon(" - ") + " ($y) [$film_directors]" }
  // File name
  { allOf
    ...
    {" PT $pi"}
    {" ["}
    ...
}
It seems FileBot is not grouping these files together and therefore skips the {pi} binding.
Processing them alone also doesn't seem to work via CLI:

Code: Select all

$ /usr/bin/filebot -script fn:amc --action test --output /cephfs/Media --conflict skip -non-strict --log-file amc.log --def @/scripts/notify.txt --def movieFormat=@/scripts/movieFormat.groovy --def seriesFormat=@/scripts/seriesFormat.groovy --def animeFormat=@/scripts/animeFormat.groovy /cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/*.avi
...
Argument[0]: /cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi
Argument[1]: /cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi
Input: /cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi
Input: /cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi
xattr: [Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi] => [Nil by Mouth (1997) [CD1]]
xattr: [Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi] => [Nil by Mouth (1997) [CD2]]
Group: [Movie:Nil by Mouth (1997) [CD1]] => [Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi]
Group: [Movie:Nil by Mouth (1997) [CD2]] => [Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi]
Rename movies using [TheMovieDB]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedConstructor$1 (file:/usr/share/filebot/jar/groovy.jar) to constructor java.text.Normalizer$Form(java.lang.String,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedConstructor$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[TEST] from [/cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD1.DVDRip.XviD-PHOBOS.avi] to [/cephfs/Media/LQ_Movies/Nil by Mouth (1997) [Gary Oldman]/Nil by Mouth (1997) [360p XviD - 2.0 MP3 - DVDRip]-PHOBOS.avi]
Processed 1 files
Rename movies using [TheMovieDB]
[TEST] from [/cephfs/Media/preprocess/movies/Nil.by.Mouth.1997.iNTERNAL.DVDRip.XviD-PHOBOS/Nil.by.Mouth.1997.CD2.DVDRip.XviD-PHOBOS.avi] to [/cephfs/Media/LQ_Movies/Nil by Mouth (1997) [Gary Oldman]/Nil by Mouth (1997) [360p XviD - 2.0 MP3 - DVDRip]-PHOBOS.avi]
Processed 1 files
P.S. Illegal access warning still remain for some reason

Code: Select all

$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed mode, sharing)

$ filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
p7zip: p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,32 CPUs Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz (306E4),ASM,AES-NI)
unrar: UNRAR 5.50 freeware
Chromaprint: java.io.IOException: Cannot run program "/usr/share/filebot/lib/fpcalc": error=13, Permission denied
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-04-09 (r559)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 32 Core / 15 GB Max Memory / 20 MB Used Memory
OS: Linux (amd64)
HW: Linux dd7967383042 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /filebot
Package: DOCKER
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error grouping multipart movie

Post by rednoah »

That's a bug... Ideally, it'll group all CD1..N into the same batch, so that CD1..N will be applied again:

Code: Select all

Group: [Movie:Nil by Mouth (1997) [CD1]]

:idea: If your files have been tagged already, then I highly recommend using filebot -rename --db xattr to reprocess the files using existing xattr metadata as instant match.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error grouping multipart movie

Post by rednoah »

Fixed with r6229.
:idea: Please read the FAQ and How to Request Help.
Post Reply