Video-Hub-App icon indicating copy to clipboard operation
Video-Hub-App copied to clipboard

File rename not detected [on Linux]

Open OndraZizka opened this issue 3 years ago • 1 comments

Given I have a hub, indexed and thumbnails generated, when I rename some files outside VHA, and I click Rescan, then a) some videos stay indexed under the old name and are not reachable on click, b) some videos appear twice; one of them does not play, as expected ("File not found").

This is without "watch the folder" enabled. I have also tried with "watch the folder" enabled; did not catch the renaming either. Restarting the app combined with Rescan before/after did not help either.

The only way I found to clean up the entries for the renamed files is to create a new hub and delete the old one.

This is on Linux (latest Ubuntu), filesystem Ext4. No symlinks involved, but the drive is mounted via EncFS if that matters. Sometimes the changes are just letter case (.MP4 -> .mp4), sometimes more - VIDEO1234.mkv -> 2022vacation.mkv.

I will try to have a look myself, but not before may. Otherwise, great app, I am grateful that it exists.

OndraZizka avatar Feb 15 '22 01:02 OndraZizka

Thank you for the clear description of the problem. I will try to replicate on Windows, Mac, and then Linux.

The app isn't expected to know you renamed a file unless "watch folder" is enabled (note: watch folder mode is not available on a network drive, IIRC).

The way I'd expect the app to work is after you rename the file via the OS and click "rescan" it should detect and add the new file while removing the old one from view.

I'll see if I find time this weekend to look -- I've been meaning to merge in the PR queue, fix a few minor bugs myself, and release a bugfix version soon.

Cheers!

whyboris avatar Feb 16 '22 14:02 whyboris