Media stuck after discovery interruption
When discovery is interrupted (by a reload for instance, when switching app), some new videos end up missing in the app. Can happen after indexing a folder with many medias.
logs show this for each missing media, in every attempt to scan/reload :
../src/MediaLibrary.cpp:822 onDiscoveredFile Failed to insert smb://xxx.xxx.xxx.xxx:445/Freebox/Vid%C3%A9os/Games/toto.mp4: Request [INSERT INTO Task(attempts_left, type, mrl, file_type, parent_folder_id, link_to_id, link_to_type, link_extra, link_to_mrl)VALUES(?, ?, ?, ?, ?, 0, 0, 0, '')] aborted due to constraint violation (UNIQUE constraint failed: Task.mrl, Task.type, Task.link_to_id, Task.link_to_type, Task.link_extra, Task.link_to_mrl). Assuming the file is already scheduled for discovery
the message suppose the task will be run, but it's not.