Page 1 of 1

Multi parts of a movie

Posted: 08 Dec 2024, 15:46
by Eris
Hi,

I try to detect "The Girl with the Dragon Tattoo (2009)" in German which is "Verblendung", this movie series are 3 Movies each with 2 parts. My issue is that filebot ignores the "Parts" and only detect one part.

the following call results in "Verblendung (2009) [tmdbid=15472]"

Do I have any change that it splits the Movie into it natural 2 Parts?
It should be
"Verblendung (Teil 1) (2009) [tmdbid=15472]"
"Verblendung (Teil 2) (2009) [tmdbid=15472]"

Shell: Select all

filebot --action "hardlink" -rename "tmp/Verblendung (Teil 1) 2009" --q "Verblendung (Teil 1) 2009" --filter "y == 2009"  -script fn:amc --lang german --log all --log-file /tmp/amc.log.1 --conflict fail --def unsorted=y music=y artwork=y skipExtract=y "ut_title=Verblendung (Teil 1) 2009" "ut_label=movie" movieFormat="Filme/{n} ({y}) [tmdbid={tmdbid}]/{n} ({y}) [tmdbid={tmdbid}] - {fn.match(/\{edition-.*\}/) } {vf.lower()}{HDR.lower() =~ /hdr/ ? ' HDR'+bitdepth : ''} {vc}{fn.match(/-forced/)}" ignore="/(Proof|Sample|Subs)/" --output "output" -r --def minLengthMS=0 --def minFileSize=0 --file-filter "f.linkCount == 2"
Additionally is there an easy way to get all information what filebot has about a move (json export, or just plaintext) so that It's possible to build an own query by checking what's available?

I know my HDR detector isn't really great because it doesn't work for DV and DV with fallback, I found a thread about this viewtopic.php?t=14055 and will look at it later, if I'm not wrong I only need to replace

Format: Select all

{HDR.lower() =~ /hdr/ ? ' HDR'+bitdepth : ''}
with

Format: Select all

{video.HDR_Format =~ /Dolby Vision/ && video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : hdr}
... hopefully

thanks

Re: Multi parts of a movie

Posted: 08 Dec 2024, 17:42
by rednoah
If you have a multi-part movie, then you'd add CD1, CD2, etc to the end of the filename.


:idea: The {plex} format will take care of adding - CD1 and - CD2 by default if a multi-part movie part is at hand:

Console Output: Select all

$ filebot -rename *.mp4 --db TheMovieDB --format "{plex.id}" --action TEST --log INFO
[TEST] from [The Girl with the Dragon Tattoo (2009) CD1.mp4] to [Movies/The Girl with the Dragon Tattoo (2009) {tmdb-15472}/The Girl with the Dragon Tattoo (2009) - CD1.mp4]
[TEST] from [The Girl with the Dragon Tattoo (2009) CD2.mp4] to [Movies/The Girl with the Dragon Tattoo (2009) {tmdb-15472}/The Girl with the Dragon Tattoo (2009) - CD2.mp4]


:idea: If you pass in a custom movie format, then you'll need to use the {pi} part index binding in your format to add the CD1 bit as needed:

Format: Select all

{ '.CD' + pi }


:idea: If you mean to check which movie / movie part was matched for each file at hand, then you can check xattr metadata after processing to read the match object as json.