AMC not using IMDB id/url in sibling .nfo

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

AMC not using IMDB id/url in sibling .nfo

Post by samwell »

Hello, I have been using Filebot for the past several months and have found it to be a great piece of software. Thanks for making this tool.

However, I experienced a hiccup with a recent movie where it couldn't be identified by the filename via the AMC script, and attempts to manually specify the IMDB id/url via a sibling .nfo make no difference.

Below is the command I'm running:

Code: Select all

filebot ^
-script fn:amc ^
--output "D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media" ^
--action "hardlink" ^
--conflict skip ^
-non-strict ^
"D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv" ^
--log-file amc.log ^
--def unsorted=n ^
--def music=n ^
--def artwork=n ^
--def minFileSize=0 ^
--def minLengthMS=0 ^
--def ^
movieFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
seriesFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
animeFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
musicFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}"
This is the output of the command (both with the .nfo existing and without it):

Code: Select all

Run script [fn:amc] at [Sun Jun 19 23:35:29 PDT 2022]
Parameter: unsorted = n
Parameter: music = n
Parameter: artwork = n
Parameter: minFileSize = 0
Parameter: minLengthMS = 0
Parameter: movieFormat = D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}
Parameter: seriesFormat = D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}
Parameter: animeFormat = D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}
Parameter: musicFormat = D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}
Argument[0]: D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv
Input: D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv
Group: {Series=auto media} => [The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [auto media]
No episode data found: [auto media]
Failed to identify or process any files
Finished without processing any files
Failure (?_?)??
The movie path is

Code: Select all

D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv
The .nfo path is

Code: Select all

D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.nfo
The contents of the .nfo file is simply the IMDB link:

Code: Select all

https://www.imdb.com/title/tt13872248/
The IMDB id/url should be enforced via the .nfo, based on my reading of viewtopic.php?p=18539#p18539.

Appreciate the assistance.
User avatar
rednoah
The Source
Posts: 21078
Joined: 16 Nov 2011, 08:59

Re: AMC not using IMDB id/url in sibling .nfo

Post by rednoah »

Looks like it's being processed as series, and not as movie, and so it doesn't work:

Code: Select all

Group: {Series=auto media} => [The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv]
Rename episodes using [TheTVDB] with [Airdate]
:arrow: You can use --def ut_label=Movie to force Movie Mode if you're set on processing this file with the amc script.

:arrow: You may want to use the FileBot Desktop application instead for tricky cases.



EDIT:

The SxE pattern 4e77 in your file path unfortunately forces series mode in this case. The [4K.UHD] unfortunately breaks the Name (Year) movie pattern. Also, the movie is from 2021 and not 2022. Adding [tt13872248] to the file name might help to force movie mode for this file.


EDIT 2:

Fixed with FileBot r9241.



Unrelated Tips:

:idea: {plex} is default and you're already specifying --output so you can remove all of this:

Code: Select all

--def ^
movieFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
seriesFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
animeFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}" ^
musicFormat="D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\media\{plex}"
:idea: Please read the FAQ and How to Request Help.
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

Re: AMC not using IMDB id/url in sibling .nfo

Post by samwell »

rednoah wrote: 20 Jun 2022, 08:18 The SxE pattern 4e77 in your file path unfortunately forces series mode in this case. The [4K.UHD] unfortunately breaks the Name (Year) movie pattern. Also, the movie is from 2021 and not 2022. Adding [tt13872248] to the file name might help to force movie mode for this file.
I suspect that the root cause is slightly more complex than just the 4e77 pattern forcing series mode.

The reason for this suspicion is that there are other movies in the same directory, which Filebot has successfully processed:

Code: Select all

dir D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media
├── Panic.2000.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTG.mkv
├── Rec.2007.1080p.BluRay.AC3.x264.D-Z0N3
│   ├── Rec.2007.1080p.BluRay.AC3.x264.D-Z0N3.mkv
Or are you saying that it falls back to series mode because it cannot parse the Name (Year)?

rednoah wrote: 20 Jun 2022, 08:18 Fixed with FileBot r9241.
Awesome =) Super happy to hear that it will be possible for AMC to make use of IMDB id/url in a .nfo sibling file. Do you have a guesstimate for when this will be cut into a stable release?

rednoah wrote: 20 Jun 2022, 08:18 Unrelated Tips: ...
Yes, thank you for the tips. This Filebot command is part of a larger script that generates the command via parameters; it has been flattened for the sake of reproducing this issue.
User avatar
rednoah
The Source
Posts: 21078
Joined: 16 Nov 2011, 08:59

Re: AMC not using IMDB id/url in sibling .nfo

Post by rednoah »

Please try FileBot r9241 and check if it now works for your use case:
viewtopic.php?t=1609


:idea: There will likely be a new stable release within the next 2-3 months.
:idea: Please read the FAQ and How to Request Help.
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

Re: AMC not using IMDB id/url in sibling .nfo

Post by samwell »

rednoah wrote: 21 Jun 2022, 21:23 Please try FileBot r9241 and check if it now works for your use case:
viewtopic.php?t=1609


:idea: There will likely be a new stable release within the next 2-3 months.
Thanks! The new revision is working with the .nfo file:

Code: Select all

Input: D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv
Group: {Movie=The Sadness (2021), Series=null} => [The.Sadness.Uncut.[4K.UHD].2022.2160p.AMZN.WEB-DL.DDP.5.1.HDR.H.265-Lee.mkv]
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

Re: AMC not using IMDB id/url in sibling .nfo

Post by samwell »

rednoah wrote: 20 Jun 2022, 08:18 The SxE pattern 4e77 in your file path unfortunately forces series mode in this case. The [4K.UHD] unfortunately breaks the Name (Year) movie pattern.
This comment got me thinking some more, and I realize now how you're saying that this is misleading the AMC script. Unfortunately, I do not control that portion of the path; it comes from DrivePool.

For example, if I try to process file path of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it will be incorrectly identified as The Bill series.

However, if I process as file path of C:\Users\me\Desktop\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it is identified as the correct movie.

I attempted to rectify this by running Filebot within the current directory of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\, and then just passing the relative path of Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv to Filebot as the target. But that had no effect.

Is there a way to specify the portion of the file path that Filebot should search against? I did not see this option in the CLI documentation.
User avatar
rednoah
The Source
Posts: 21078
Joined: 16 Nov 2011, 08:59

Re: AMC not using IMDB id/url in sibling .nfo

Post by rednoah »

No worries. FileBot r9241 will just work.


:idea: Note that this issue is specific to the amc script because GUI and CLI usage typically includes selecting either Episode Mode or Movie Mode when processing files, e.g. filebot -rename --db MovieDB ... just works because --db MovieDB forces Movie Mode.


:idea: If you're using the amc script then forcing Episode Mode or Movie Mode via --def ut_label is generally recommended. Please read the amc script manual for details.
:idea: Please read the FAQ and How to Request Help.
sjtsnix
Posts: 3
Joined: 27 Nov 2021, 03:40

Re: AMC not using IMDB id/url in sibling .nfo

Post by sjtsnix »

samwell wrote: 22 Jun 2022, 01:54
rednoah wrote: 20 Jun 2022, 08:18 The SxE pattern 4e77 in your file path unfortunately forces series mode in this case. The [4K.UHD] unfortunately breaks the Name (Year) movie pattern.
This comment got me thinking some more, and I realize now how you're saying that this is misleading the AMC script. Unfortunately, I do not control that portion of the path; it comes from DrivePool.

For example, if I try to process file path of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it will be incorrectly identified as The Bill series.

However, if I process as file path of C:\Users\me\Desktop\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it is identified as the correct movie.

I attempted to rectify this by running Filebot within the current directory of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\, and then just passing the relative path of Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv to Filebot as the target. But that had no effect.

Is there a way to specify the portion of the file path that Filebot should search against? I did not see this option in the CLI documentation.
Hello Samwell,

Fellow DrivePool user here.

I have 5 8TB drives in my DrivePool. I never access the "direct path" do any files or folders on any of the 5 8TB Drives, which by that path, it appears you are doing?

I have my 5 drives in a DrivePool, and have assigned the drive letter D: to that DrivePool.... and I access all data there.

I recall reading that if I had to access data on an individual drive due to a failure of some sort that I might be able to recover data using that "PoolPart" path for an individual drive

Have you tried the script using just the normal drive letter assigned to the DrivePool?

Assuming your DrivePool has N: assigned to it, you should be using:

N:\torrents\auto-media\

instead of:

D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\

All this assuming you have DrivePool setup similar to how I have it setup.

SJ
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

Re: AMC not using IMDB id/url in sibling .nfo

Post by samwell »

sjtsnix wrote: 01 Aug 2022, 03:42
samwell wrote: 22 Jun 2022, 01:54
rednoah wrote: 20 Jun 2022, 08:18 The SxE pattern 4e77 in your file path unfortunately forces series mode in this case. The [4K.UHD] unfortunately breaks the Name (Year) movie pattern.
This comment got me thinking some more, and I realize now how you're saying that this is misleading the AMC script. Unfortunately, I do not control that portion of the path; it comes from DrivePool.

For example, if I try to process file path of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it will be incorrectly identified as The Bill series.

However, if I process as file path of C:\Users\me\Desktop\Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv, it is identified as the correct movie.

I attempted to rectify this by running Filebot within the current directory of D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\, and then just passing the relative path of Bill.Burr.Presents.Friends.Who.Kill.2022.1080p.NF.WEB-DL.DDP5.1.x264-KHN.mkv to Filebot as the target. But that had no effect.

Is there a way to specify the portion of the file path that Filebot should search against? I did not see this option in the CLI documentation.
Hello Samwell,

Fellow DrivePool user here.

I have 5 8TB drives in my DrivePool. I never access the "direct path" do any files or folders on any of the 5 8TB Drives, which by that path, it appears you are doing?

I have my 5 drives in a DrivePool, and have assigned the drive letter D: to that DrivePool.... and I access all data there.

I recall reading that if I had to access data on an individual drive due to a failure of some sort that I might be able to recover data using that "PoolPart" path for an individual drive

Have you tried the script using just the normal drive letter assigned to the DrivePool?

Assuming your DrivePool has N: assigned to it, you should be using:

N:\torrents\auto-media\

instead of:

D:\PoolPart.b8ddfd35-ad0d-4e77-9c2e-f439eec5496c\torrents\auto-media\

All this assuming you have DrivePool setup similar to how I have it setup.

SJ
I do this to enable hardlinks. You can't hardlink against the pool's virtual mount; you can only hardlink against the physical mount.
User avatar
rednoah
The Source
Posts: 21078
Joined: 16 Nov 2011, 08:59

Re: AMC not using IMDB id/url in sibling .nfo

Post by rednoah »

samwell wrote: 01 Aug 2022, 03:49 I do this to enable hardlinks. You can't hardlink against the pool's virtual mount; you can only hardlink against the physical mount.
That's really good to know. I shall remember that.
:idea: Please read the FAQ and How to Request Help.
samwell
Posts: 6
Joined: 20 Jun 2022, 06:37

Re: AMC not using IMDB id/url in sibling .nfo

Post by samwell »

rednoah wrote: 01 Aug 2022, 08:50
samwell wrote: 01 Aug 2022, 03:49 I do this to enable hardlinks. You can't hardlink against the pool's virtual mount; you can only hardlink against the physical mount.
That's really good to know. I shall remember that.
In case it's helpful, below is the command I am using to convert from <pool_file_path> to <physical_file_path>

Code: Select all

dpcmd check-pool-fileparts $pool_file_path 4
dpcmd docs

I have a script to automate all of this.
Post Reply