Cleaning Library in XBMC and ND

I am assuming that ND uses the cleaning library from XBMC after it does the updating as so forth.

Anyway, something weird just happened. I was watching a show and noticed the XBMC library update window popped up.

This probably happened because I deleted another TV show episode [The.Indian.Doctor.S03E01.The.Prodigals.Return.[HDTV-720p].mkv] because it had some glitches in it. I then manually deleted the episode and grabbed another copy from one of the indexers, Sabnzbd processed it and ND moved it, that’s when I saw the popup regarding the “cleaning library update”

My questions is this. Could this be a bug with ND?

Shedrock

Drone only runs a clean up afrter updating if you set it to do so, it doesn’t run it when a series/episode is deleted.

hmm…ok, thanks.

I actually managed to replicate this issue today.

Here is what I noticed. While ND is in the process of moving a file to the appropriate series folder and you’re performing a “Library Update” in XBMC, it automatically triggers XBMC’s “Clean Library” function.

This actually happened twice today, and I also did a manual library update as well when I knew that ND was moving a file and it happened again.

Re-read the thread, not sure what the issue is. Do you have Clean Library enabled in drone’s xbmc settings?

Yes, it is turned on.

Then thats why the clean library popup came up, the Library Update ran, followed by a clean library, its expected given the the configuration.

Clean Library on XBMC pops up a progress box in the center of the screen, unlike update library that has a smaller progress bar in the corner of the screen.

But wouldn’t clean library only come on if ND is replacing a file with a better quality one?

I would assume that there is no reason to clean the library if ND is adding a new episode and not a better quality one.

Thats never been the behavior, but likely should be, would also open the door for another use case, so I think its reasonable to add. Added to Trello: https://trello.com/c/T1iXtQvE/452-only-clean-library-when-upgrading-an-episode-s-quality

Awesome!

Thank you.

This just happened again. While watching a show the XBMC clean library started as soon as I got the notification that Parks and Recreation S06E07 [Downloaded].

My question is, why doesn’t this happen every time ND moves a file?

@markus101 said:
Then thats why the clean library popup came up, the Library Update ran, followed by a clean library, its expected given the the configuration.

Clean Library on XBMC pops up a progress box in the center of the screen, unlike update library that has a smaller progress bar in the corner of the screen.

Because if you have Clean Library on it runs after the update scan, always, every time, which is why the Trello card is there, until its implemented this will be the behavior.

I don’t know if you actually read my post but I understand what you are saying and can also see the frustration by your response. All I asked is why it does not happen every time.

I did not code ND, so how am I suppose to know why the clean library box pops up sometimes?

Unless I am a real moron, I see no where in this post where you explained that this issue only happens sometimes, and this is why I asked the question in the last post.

Sorry for asking, I’ll leave the issues alone.

@shedrock from your posts I see no mention of it happening periodically (explicitly), you make some mention of being to replicate it under certain circumstances, followed by a later post with you asking why it runs the clean when its not replacing a file. Had I been aware that it was only happening periodically then I would have asked for logs to see what was different between it happening and not happening.

As you said you didn’t code drone and even though I have, without logs it hard to say why its happening and impossible to say why its happening when I’m not even aware its happening. I was a bit quick to jump to quoting myself and missed the fact that you mentioned it only happens sometimes.

In order to answer why it only happens sometimes, I’ll need trace log files, once that captures the “normal” behavior (not cleaning) and another that does.

@shedrock Cleaning should only happen on upgrade now, let us know if you still have issues.

I will. Thank you very much.

I think about 2 dev. versions back this issue popped up again. I haven’t made any changes to drone’s configuration or anything, but I noticed at least 5 times yesterday and a few days back that the XBMC “Cleaning Up Library” window pops up when an episode is upgraded.

I will provide the logs if it happens tonight for you.

Cheers
Shedrock

@shedrock its supposed to happen on upgrade. Per your post thats when its happening.

oh, Is this new? It wasn’t happening for the longest time. It is also annoying when watching a movie or tv show to have it popping up all the time like that.

I have always had the clean library function on in drone but it stopped popping up for months now.

No, nothing has changed. I agree it is annoying and the reason I have it disabled. You can turn it off and manually clean it when you want, cleaning just removes the files that were deleted for the upgrade, which means there will be non-existent episodes listed in XBMC until its cleaned, but I don’t find that too bad, I find it worse that the watched status is nuked.