RAR files being duplicated
Posted: 27 Aug 2025, 04:26
I have an AMC script running via cron that works well with un-rared movies, but rar-ed files get duplicated and both files are moved to the location as <movie>-CD1.mkv and <movie>-CD2.mkv.
Here is the scripts I use:
Here is relevant log file entries:
From what I can see, filebot is extracting the files to /mnt/media/Downloads/Movies/<downloaded file name> as well as /mnt/media/Downloads/Movies/<found movie filename>, then moves both to the properly created movie directory - one with CD1.mkv and the other with CD2.mkv. I'll start digging around the Forums here, but if someone can point to where I have something incorrect I would appreciate it.
Here is the scripts I use:
Code: Select all
filebot -script fn:amc /mnt/media/Downloads/Movies --output /mnt/media --action move --def movieDB -non-strict --conflict auto --def clean=y --def deleteAfterExtract=y --def "ut_label=MOVIE" --log-file /mnt/media/Logs/movie.log
Here is relevant log file entries:
Code: Select all
Run script [fn:amc] at [Sun Aug 24 23:09:03 EDT 2025]
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: ut_label = MOVIE
Argument[0]: /mnt/media/Downloads/Movies
Ignore hidden: /mnt/media/Downloads/Movies/.stfolder
Ignore hidden: /mnt/media/Downloads/Movies/Come and See (1985)/.syncthing.Come and See (1985).mkv.tmp
Input: /mnt/media/Downloads/Movies/Threads (1984)/Threads (1984).mkv
Input: /mnt/media/Downloads/Movies/Threads.1984.1080p.BluRay.REMUX.AVC.FLAC.2.0-EPSiLON.mkv
Process as Movie [MOVIE]
Group: {Movie=true} => [Threads (1984).mkv, Threads.1984.1080p.BluRay.REMUX.AVC.FLAC.2.0-EPSiLON.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/mnt/media/Downloads/Movies/Threads (1984)/Threads (1984).mkv]
Auto-detect movie from context [/mnt/media/Downloads/Movies/Threads.1984.1080p.BluRay.REMUX.AVC.FLAC.2.0-EPSiLON.mkv]
[MOVE] from [/mnt/media/Downloads/Movies/Threads (1984)/Threads (1984).mkv] to [/mnt/media/Movies/Threads (1984)/Threads (1984) - CD1.mkv]
[MOVE] from [/mnt/media/Downloads/Movies/Threads.1984.1080p.BluRay.REMUX.AVC.FLAC.2.0-EPSiLON.mkv] to [/mnt/media/Movies/Threads (1984)/Threads (1984) - CD2.mkv]
Processed 2 files