AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Hi,

I've read this forum up and down the past week. But I can't get the AMC script to multipart movies into their own file. CD1 gets overwritten with CD2. I did manage with an explicit format string, but I thought AMC did this automatically.

Take a look at this log for explanation:

Code: Select all

## REMOVED ##
Command:

Code: Select all

filebot -script fn:amc --output ~/Testing --action copy -non-strict "Movies" --log-file amc.log --def excludeList=amc.txt --action test
Have I gone about this completely wrong? Doing some initial testing before I actually do run the script om my whole collection.

Any comments is much appreciated :-)
Last edited by MindTooth on 21 Apr 2017, 10:44, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

1.
Please run filebot -script fn:sysinfo and post the output.

2.
Run this command and post the output:

Code: Select all

filebot -mediainfo -r /Users/MindTooth/Source/Movies/Babel.2006.PROPER.DVDRip.XviD-FLAiTE
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Thank you for such a fast reply. Just to let you know, it's a multipart .rar movie as well.

Code: Select all

filebot -script fn:sysinfo
FileBot 4.7.8 (r4846)
JNA Native: 5.1.0
MediaInfo: 0.7.92.1
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-02-20 (r481)
Groovy: 2.4.8
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 13 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/MindTooth/.filebot
uname: Darwin ##HOSTNAME##.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan  9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ

Code: Select all

## REMOVED ##
Last edited by MindTooth on 21 Apr 2017, 10:44, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

1.
Looks strange. Why are there more than 2 files?


2.
Multi-Part detection only works to a certain degree. It probably won't work if the files are too far apart in the file hierarchy.

YES:

Code: Select all

Babel.2006.PROPER.DVDRip.XviD-FLAiTE
├── CD1
│   └── fl-babel-proper-dvdrip-xvid-cd1.avi
└── CD2
    └── fl-babel-proper-dvdrip-xvid-cd2.avi
NO:

Code: Select all

Babel.2006.PROPER.DVDRip.XviD-FLAiTE
├── CD1
│   └── fl-babel-proper-dvdrip-xvid-cd1
│       └── CD1
│           └── fl-babel-proper-dvdrip-xvid-cd1.avi
└── CD2
    └── fl-babel-proper-dvdrip-xvid-cd2
        └── CD2
            └── fl-babel-proper-dvdrip-xvid-cd2.avi
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

That might be cause. However, it's AMC that unpacks the files. And it seems to defaulting on creating a folder instead of extract inside current.

This is created by AMC:

Code: Select all

## REMOVED ##
Do you have any suggestion on what would be the best course of action against this? Should I set an extraction dir?
Last edited by MindTooth on 30 May 2017, 21:39, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

Not sure. It's worth a try though.
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Code: Select all

## REMOVED ##
Didn't help. Something funky going on about the path names when extracting. Thoughts?

Thank you for replies. Find it strange that I'm the only one that can have experienced this :-P
Last edited by MindTooth on 21 Apr 2017, 10:43, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

1. Archives are not that common anymore
2. Multi CD files are not that common anymore
3. Some other unknown factors that may or may not make things work depending on the situation

Your use case is just not as common as it might appear to you. ;)


:idea: I could easily make this work by deleting a few lines, but I won't, because messing with more common use cases in favour or rare uses cases is not justified in this case.

:idea: FileBot will preserve as much of the original path when extracting files. This is usually beneficial to matching files correctly. Though it seems to interfere with multi-part detection in this case.

:idea: I recommend mass-extracting all the archives in a way that makes sense for your files (e.g. flatten) first, then then running the amc script on that.
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

I see.

My options it seems is to to a search for all folder that does contain archives. Save the list, and then just run a find & unrar command. And running AMC last with skipping archive enable.

Thank you for taking the time. Guess old fashion CLI need to do the work ;-)
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

Potential issues with CD1/2 detection fixed with r5000.
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Thank you! I'll be sure to test this ASAP. Away on holidays atm.

Ed1t: Works as intended :-D Is there a way to only target archived movies?

Ed2t: Also, I just sent you a donation ;-)
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

MindTooth wrote:Is there a way to only target archived movies?
I'm not sure what you mean here. CD12 only works for movies in the first place.
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

I ment to only select movies(folder) that currently are archived, and skip extracted :-)

Guess I can create a list using unix tools. Can a folder-list be provided as an input to filebot?

r5000: Reason for extracting into new folders, and not into current directory (of the archive)?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

1.
You can pass as many file arguments as you want:
viewtopic.php?t=4788

e.g.

Code: Select all

find . -type f -iname '*.rar' -exec filebot -script fn:amc $AMC_OPTS {} +

2.
If the file inside "Avatar.2009.rar" is called "avtr.avi" then we won't be able to identify that file later on unless all the identifying information is preserved in the file path somehow.

There's nothing that has been changed with r5000 in this regard though. All the code for that is in the amc script.
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Ended up with this for none-CD-part folders:

Code: Select all

find . -maxdepth 2 -type f -iname "*.rar" -printf '%h\n' | head -3 | xargs -I{} filebot -script fn:amc --output ../text_ext/ --action copy --log-file amc.log --def excludeList=amc.txt --action test --mode interactive {}
Thought I share for others. Some tweaks remain :-P
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

What you make of this? Major mismatches.

Code: Select all

 ## REMOVED ##
Command:

Code: Select all

filebot -script fn:amc --output movies --action copy --log-file amc.log --def excludeList=amc.txt -non-strict . --action test
Last edited by MindTooth on 21 Apr 2017, 10:43, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

Is there any specific line in those ~150 lines that you would like to point out? The log shows all movies being identified as movie and none being misidentified as episode.

AFAIK, the log doesn't show any mismatches, because it doesn't show any files actually being processed:

Code: Select all

[TEST] from [A] to [B]
:idea: Please read the FAQ and How to Request Help.
User avatar
MindTooth
Donor
Posts: 13
Joined: 20 Mar 2017, 07:23

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by MindTooth »

Code: Select all

## REMOVED ##
Basic Instinct, Munich, The Curious Case of Benjamin Buttons.
Last edited by MindTooth on 30 May 2017, 21:38, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC: Multipart (CD1/2) don't get renamed and moved into seperat files

Post by rednoah »

Looks like the first meaningful bit of the file path is too deep down the folder structure.

EDIT:

I've extended the horizon from 3 levels to 4 levels with r5041.
:idea: Please read the FAQ and How to Request Help.
Post Reply