Page 1 of 1

Override issue when creating symlinks

Posted: 25 Sep 2017, 13:22
by Prototype51
Hello,

I use the portable version of filebot (4.7.9) in CLI and I have a problem when I add a movie that has the same name.

For example, if I take a movie in 720p and I take the same later in 1080p, I have an error when filebot script replacing the symbolic link.
It deletes it well (when I look in the folder, the link is removed), but when creating the new link, it tells me that the old one is still existing (see logs) :shock: .
If I restart the command, this time it is the link :twisted: .

Maybe deleting the link is not fast enough and when he wants to create the new one, he still sees the old one :?:

Filebot script use :
sh /home/user/.filebot/filebot.sh --lang fr -script fn:amc --output "/home/user/Media" --log-file "/home/user/.filebot/amc.log" --action symlink --conflict override -non-strict --def music=y artwork=y --def /home/user/torrents/

amc.log :
Input: /home/user/torrents/Film1080p.mkv
Group: [mov:le film 2017] => [Film1080p.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/user/torrents/Film1080p.mkv]
[OVERRIDE] Delete [/home/user/Media/Movies/Le Film (2017)/Le Film (2017).mkv]
[SYMLINK] From [/home/user/torrents/Film1080p.mkv] to [/home/user/Media/Movies/Le Film (2017)/Le Film (2017).mkv]
[SYMLINK] Failure: java.nio.file.FileAlreadyExistsException: /home/user/torrents/Film720p.mkv
Processed 0 files
FileAlreadyExistsException: /home/user/torrents/Film720p.mkv
Finished without processing any files
Failure (°_°)


Sorry for my bad English :oops:

Re: Override issue

Posted: 27 Sep 2017, 06:01
by rednoah
Here's a possible solution:
https://stackoverflow.com/a/7479642/1514467

Please run FileBot with this Java System Property and see if it makes a difference.

Re: Override issue

Posted: 28 Sep 2017, 09:57
by Prototype51
It works !!!!!!
Thank you very much :D :D :D

Re: Override issue

Posted: 28 Sep 2017, 10:07
by rednoah
Alright. Then I know how to fix this issue permanently. It'll just work with the next release.