AMC script not working (recent change)

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
F12
Posts: 22
Joined: 15 Apr 2012, 03:27

AMC script not working (recent change)

Post by F12 » 07 Jun 2018, 10:02

Hi all,

I have had a perfectly working Filebot AMC for some time now and been loving it, however as of today it seems to have encountered an issue. I've posted an example CMD below.

Code: Select all

filebot -script fn:amc --output "E:/" --action copy --conflict auto -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" "movieFormat=D:/More Movies/{n} ({y})/{n} ({y}){' CD'+pi}" "seriesFormat=Videos/{n}/Season {s}/{n} - {s}x{e.pad(2)} - {t}" kodi=localhost

[2018-06-07 11:36:25]  Executing: filebot -script fn:amc --output "E:/" --action copy --conflict auto -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=" "ut_state=5" "ut_title=Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv" "ut_kind=%K" "ut_file=Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv" "ut_dir=C:\Users\Kieran\Downloads" "movieFormat=D:/More Movies/{n} ({y})/{n} ({y}){' CD'+pi}" "seriesFormat=Videos/{n}/Season {s}/{n} - {s}x{e.pad(2)} - {t}" kodi=localhost

Code: Select all

Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = 
Parameter: ut_state = 5
Parameter: ut_title = Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv
Parameter: ut_kind = %K
Parameter: ut_file = Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv
Parameter: ut_dir = C:\Users\F12\Downloads
Parameter: movieFormat = D:/More Movies/{n} ({y})/{n} ({y}){' CD'+pi}
Parameter: seriesFormat = Videos/{n}/Season {s}/{n} - {s}x{e.pad(2)} - {t}
Parameter: kodi = *****
Bad ut_kind value: %K
Input: C:\Users\F12\Downloads\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv
Group: [mov:black panther 2018] => [Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Users\F12\Downloads\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv]
[COPY] Rename [C:\Users\F12\Downloads\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv] to [D:\More Movies\Black Panther (2018)\Black Panther (2018).mkv]
[COPY] Failed to rename [C:\Users\F12\Downloads\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv]
Processed 0 files
D:\More Movies\Black Panther (2018): Data error (cyclic redundancy check).

Processing 1 unsorted files
[COPY] Rename [C:\Users\F12\Downloads\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv] to [E:\Unsorted\Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv]
Processed 1 files
Notify Kodi: [host:localhost]
POST: http://localhost:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot finished processing 1 files","message":"Black.panther.2018.1080p.3D.BluRay.Half-SBS.DTS.x264-CHC.mkv","image":"https://app.filebot.net/icon.png"},"id":1}
Connection refused: connect
Done ヾ(@⌒ー⌒@)ノ
Firstly, it looks as if the ut_kind parameter has dropped off for some reason but that is probably not the primary issue. It is failing the copy process for the file however I cannot work out why. There is plenty of hard drive space. The files have been successfully transferred to the "Unsorted" folder however I am not sure why they are suddenly not being copied to the correct folder as per the script.

Any ideas?

User avatar
rednoah
The Source
Posts: 14345
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script not working (recent change)

Post by rednoah » 07 Jun 2018, 10:24

This is an IO error:

Code: Select all

Data error (cyclic redundancy check).
Presumably, this particular file has been corrupted on disk, and as it's being read, the OS is checking checksums, and throws and IO error instead of quietly copying the corrupted data.

You may need to restore this particular file from a backup. I'd also recommend doing a full check of the filesystem. If your disk is old, it might be failing.

https://www.wikihow.com/Fix-a-Cyclic-Re ... tility_sub
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests