Several Movies being renamed to the same movie name

Any questions? Need some help?
Post Reply
bellimor
Posts: 2
Joined: 16 Nov 2015, 08:23

Several Movies being renamed to the same movie name

Post by bellimor »

So after much searching I haven't found anything to explain why this is happening.

When I run AMC script on my movie folder, several movies are renamed to the same movie, all of which do not match that movies name in any way.

This has of course wrecked havoc on my organised movie folder and resulted in several movies being lost due to file name being the same.

Below is command being used:

Code: Select all

filebot -script fn:amc --output "J:/organised" --log-file amc.log --action move -non-strict --conflict auto --def excludeList=amc.txt clean=y "seriesFormat=TV Shows/{n.replaceAll(/[!?.]+$/)}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.replaceAll(/[:|]/, \" - \")} - {episode.special ? special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ:]/, /'/).replaceAll(/[!?.:]+$/).replacePart(', Part $1')}{\".$vf\"}{\".$source\"}{\".$vc\"}{\".$ac\"}{\".$group\"}" "animeFormat=Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replacePart(', Part $1')}{\".$vf\"}{\".$source\"}{\".$vc.\"}{\".$ac.\"}{\".$group\"}" "movieFormat={fn =~ /3D/ ? '3D Movies' : 'Movies'}/{n} ({y})/{n} ({y}){'.$vf'}{'.$source'}{'.$vc'}{'.$ac'}{'.$group'}{' CD'+pi}" "musicFormat=Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}{\".$vf\"}{\".$source\"}{\".$vc\"}{\".$ac\"}{\".$group\"}" unsorted=y clean=y storeReport=y music=y artwork=y "ut_label=Movie" "J:/Movies/LowDef"
This resulted in several movies being renamed to "Cinema Paradiso (1988)". Don't think I even have this movie.

Code: Select all

Run script [fn:amc] at [Wed Nov 11 19:29:20 AEDT 2015]
Parameter: excludeList = amc.txt
Parameter: clean = y
Parameter: seriesFormat = TV Shows/{n.replaceAll(/[!?.]+$/)}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.replaceAll(/[:|]/, " - ")} - {episode.special ? special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’?:]/, /'/).replaceAll(/[!?.:]+$/).replacePart(', Part $1')}{".$vf"}{".$source"}{".$vc"}{".$ac"}{".$group"}
Parameter: animeFormat = Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, /'/).replacePart(', Part $1')}{".$vf"}{".$source"}{".$vc."}{".$ac."}{".$group"}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y}){".$vf"}{".$source"}{".$vc"}{".$ac"}{".$group"}{' CD'+pi}
Parameter: musicFormat = Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}{".$vf"}{".$source"}{".$vc"}{".$ac"}{".$group"}
Parameter: unsorted = y
Parameter: storeReport = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movie
Argument: J:\Movies\LowDef
Using excludes: J:\organised\amc.txt (5710)
Ignore processed folder: J:\Movies\LowDef\Sorry Haters
Ignore processed folder: J:\Movies\LowDef\Stalingrad
Ignore processed folder: J:\Movies\LowDef\The Perfect Score
Ignore processed folder: J:\Movies\LowDef\The Prince & Me - The Elephant Adventure (2010)
Ignore processed folder: J:\Movies\LowDef\The Wizard
Ignore processed folder: J:\Movies\LowDef\Voices of a Distant Star
Here's an excerpt showing 3 movies in a row being incorrectly renamed:

Code: Select all

Rename movies using [TheMovieDB]
[MOVE] Rename [J:\Movies\LowDef\Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo\Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo.avi] to [J:\organised\Movies\Cinema Paradiso (1988)\Cinema Paradiso (1988).360p.DVDRip.XviD.MP3.avi]
Processed 1 files
Fetching movie artwork for [Cinema Paradiso (1988)] to [J:\organised\Movies\Cinema Paradiso (1988)]
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\poster.jpg
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\fanart.jpg
IOException: Server returned HTTP response code: 500 for URL: http://api.fanart.tv/webservice/movie/780b986b22c35e6f7a134a2f392c2deb/11216/xml/all/1/2
Rename movies using [TheMovieDB]
Skipped [J:\Movies\LowDef\Black Irish (2007)\Black Irish.avi] because [J:\organised\Movies\Cinema Paradiso (1988)\Cinema Paradiso (1988).360p.XviD.MP3.avi] already exists
Processed 1 files
Fetching movie artwork for [Cinema Paradiso (1988)] to [J:\organised\Movies\Cinema Paradiso (1988)]
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\poster.jpg
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\fanart.jpg
IOException: Server returned HTTP response code: 500 for URL: http://api.fanart.tv/webservice/movie/780b986b22c35e6f7a134a2f392c2deb/11216/xml/all/1/2
Rename movies using [TheMovieDB]
[MOVE] Rename [J:\Movies\LowDef\Black Sheep (2006)\Black Sheep.avi] to [J:\organised\Movies\Cinema Paradiso (1988)\Cinema Paradiso (1988).240p.XviD.MP3.avi]
Processed 1 files
Fetching movie artwork for [Cinema Paradiso (1988)] to [J:\organised\Movies\Cinema Paradiso (1988)]
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\poster.jpg
Artwork already exists: J:\organised\Movies\Cinema Paradiso (1988)\fanart.jpg
IOException: Server returned HTTP response code: 500 for URL: http://api.fanart.tv/webservice/movie/780b986b22c35e6f7a134a2f392c2deb/11216/xml/all/1/2


Code: Select all

FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
Nov 16, 2015 7:42:14 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Chromaprint: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_65
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 7 GB Max Memory / 27 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\sim\AppData\Roaming\FileBot
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Several Movies being renamed to the same movie name

Post by rednoah »

1.
Using --conflict override (or auto) combined with -non-strict is inherently unsafe. You may use --conflict skip to disable the override behaviour, or remove -non-strict for strict matching behaviour. However, each of these 3 options represents some sort of trade-off between accuracy and level of automation.

2.
I can't reproduce the issue though, and it seems to work fine here. Maybe there's some rouge *.nfo file somewhere in one of the parent folders?

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo/Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo.avi]
[DUPLICATE] Rename [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo/Bio-Dome[1996]DvDrip[Eng]-fUCkaXXo.avi] to [/Users/reinhard/Development/test/OUTPUT/Movies/Bio-Dome (1996)/Bio-Dome (1996).avi]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Black Irish (2007)/Black Irish.avi]
[DUPLICATE] Rename [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Black Irish (2007)/Black Irish.avi] to [/Users/reinhard/Development/test/OUTPUT/Movies/Black Irish (2007)/Black Irish (2007).avi]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Black Sheep (2006)/Black Sheep.avi]
[DUPLICATE] Rename [/Users/reinhard/Development/test/AMC-TEST/Movies/LowDef/Black Sheep (2006)/Black Sheep.avi] to [/Users/reinhard/Development/test/OUTPUT/Movies/Black Sheep (2006)/Black Sheep (2006).avi]
Processed 1 files
3.
If you have successfully renamed files once, then they'll be xattr tagged, and that information may be used to identify the files in the future.

Code: Select all

filebot -script fn:xattr /path/to/files
@see viewtopic.php?f=4&t=5#p5394
:idea: Please read the FAQ and How to Request Help.
bellimor
Posts: 2
Joined: 16 Nov 2015, 08:23

Re: Several Movies being renamed to the same movie name

Post by bellimor »

Ahh yes, dud .nfo from the first time it failed when I ran it. First run I did was in strict mode. Looks like at some point in that first run the nfo file was copied to several locations that it should not have been. Logs from back then are unfortunately gone as this was before I upgraded to win10 and went on a big cull of files and now a few months ago.


Thanks for the quick response... and of course tremendous coding work.

think I will just go and remove all the nfo files.
Post Reply