2016-05-01, 19:42
I believe there is a bug in CGUIWindowVideoBase::OnUnAssignContent() and more precisely in
the RemoveContentForPath() call.
I have noticed that, when removing a source, some items are not cleaned from the db. After investigations, it seems the concerned items are always contained inside a container like a zip file. For instance, all the path starting with "zip://" are not removed when they should, creating orphan items in the db.
I have tracked the problem down to RemoveContentForPath(), but I am not able to understand the exact cause of the issue. There might be other cases for a file not being cleaned when removing a source, I have seen at least another occurrence (but this other time I could not identify the possible cause).
For information, all the items are cleaned when using the "Clean Library" function from the Settings menu (under Video/Library in my case).
Do you have any tip on a way to solve this issue? I would be happy to propose a patch if I am pointed in the right direction...
Pierre
the RemoveContentForPath() call.
I have noticed that, when removing a source, some items are not cleaned from the db. After investigations, it seems the concerned items are always contained inside a container like a zip file. For instance, all the path starting with "zip://" are not removed when they should, creating orphan items in the db.
I have tracked the problem down to RemoveContentForPath(), but I am not able to understand the exact cause of the issue. There might be other cases for a file not being cleaned when removing a source, I have seen at least another occurrence (but this other time I could not identify the possible cause).
For information, all the items are cleaned when using the "Clean Library" function from the Settings menu (under Video/Library in my case).
Do you have any tip on a way to solve this issue? I would be happy to propose a patch if I am pointed in the right direction...
Pierre