Override issue when creating symlinks

All your suggestions, requests and ideas for future development
Post Reply
Prototype51
Posts: 2
Joined: 25 Sep 2017, 12:52

Override issue when creating symlinks

Post 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:
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Override issue

Post 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.
:idea: Please read the FAQ and How to Request Help.
Prototype51
Posts: 2
Joined: 25 Sep 2017, 12:52

Re: Override issue

Post by Prototype51 »

It works !!!!!!
Thank you very much :D :D :D
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Override issue

Post by rednoah »

Alright. Then I know how to fix this issue permanently. It'll just work with the next release.
:idea: Please read the FAQ and How to Request Help.
Post Reply