Clean Library confusion/not working

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vbat99 Offline
Fan
Posts: 520
Joined: Aug 2009
Reputation: 13
Location: New Zealand
Post: #11
With clean on update set in Advancedsettings.xml, I have notice if you alter your nfo information stored with your movie or tv show, this will not update.

Cleanonupdate only checks to see if the media is present or not. If not, then it is removed from the library. (It doesn't check if the nfo infomation is the same as in the library.)

All your doing (and I was too) is altering the nfo data. Cleanonupdate still see's the media as it's still present, so nothing is removed from library, and no update is done.

Two options.

1). Move the media incl nfo, jpg's etc to a temp place outside of what your library scans. On Library update, this media will be removed (as long as cleanonupdate is set). Move the media back and redo Library update. New nfo info will now scan in.

2). press info for the media in your library and select 'Refresh'. This will re-scan just that media. It will remove any library info it has, and reload what is stored with your media file.

Problem with No. 2 is if you have altered alot of nfo's, you have to do it for each media in your library.

Trial and error was how I found this out. Cleanonupdate is only good for when you remove files wherever they're stored (for me on my NAS).

I hope this is of helpNerd

In-Training Media Companion Dev.
find quote
>>X<< Offline
Alaska Group
Posts: 2,900
Joined: Jun 2009
Location: On a farm trying to catch a fox
Post: #12
You are correct but he refereed to renaming in ember which is different you rename a file it no longer exist so it gets removed if you clean your library
find quote
vbat99 Offline
Fan
Posts: 520
Joined: Aug 2009
Reputation: 13
Location: New Zealand
Post: #13
&gt;&gt;X&lt;&lt; Wrote:You are correct but he refereed to renaming in ember which is different you rename a file it no longer exist so it gets removed if you clean your library

:blush:Oops, My bad. should read more thoroughly.No

prophetizer Wrote:for instance, if i edit a movie in EMM for instance, and then auto update is run, i have this item showing up twice, because i have ember follow a rename policy. when i go into the video settings and manually select to clean the library, it removes dead items from my library. that is what i expect the clean on update to do in advancedsettings.xml. is this wrong?

Got the first point, didn't spot the second.

Wouldn't that point to the nfo file still having the same name but the media file has changed? Almost like two nfo's exist.

Any Dev's around able to explain how/what 'cleanonupdate' checks for before flagging a library entry for removal?

Sorry I'm not of help to you.

In-Training Media Companion Dev.
find quote
foghat Offline
Senior Member
Posts: 191
Joined: Jan 2010
Reputation: 0
Post: #14
vbat99 Wrote:All your doing (and I was too) is altering the nfo data. Cleanonupdate still see's the media as it's still present, so nothing is removed from library, and no update is done.

Yes, I wish there was a better way to get changes to nfo files recognized. Seem like a key thing that is missing. I think there should be some sort of 'full' refresh option that re-reads your source just like on first load.

What I think I might do when I have a lot of changes (like if I clean up genres or what have you), is make the edits with a tool that edits the database directly. Then do an export to individual files. I assume this would overwrite the existing nfos with an updated version including the changes.
find quote
prophetizer Offline
Senior Member
Posts: 277
Joined: Sep 2008
Reputation: 2
Post: #15
well, it didn't seem to work, also, my XBMC seems to be crashing everynight, i'm thinking it's a plugin, either that or virtual box thats installed on there to manage it. going to remove all plugins, maybe something is conflicting, i will report back

thanks for the help

--
[Image: watched-clearlogo.jpg]
find quote
>>X<< Offline
Alaska Group
Posts: 2,900
Joined: Jun 2009
Location: On a farm trying to catch a fox
Post: #16
I've never used it so cant really help, you could however add clean library onto your keyboard or remote if you cant get it to work just put the following on a key

Code:
CleanLibrary(video)
(This post was last modified: 2011-02-23 00:23 by >>X<<.)
find quote
prophetizer Offline
Senior Member
Posts: 277
Joined: Sep 2008
Reputation: 2
Post: #17
&gt;&gt;X&lt;&lt; Wrote:I've never used it so cant really help, you could however add clean library onto your keyboard or remote if you cant get it to work just put the following on a key

Code:
CleanLibrary(video)

do i do this with the mceremote plugin and the keymap.xml file? haven't done this before but trying now, would like more input please.

i use a logitech harmony one, so if the above is true, it would be pretty simple right?


thanks

--
[Image: watched-clearlogo.jpg]
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 117
Location: Chester, UK
Post: #18
prophetizer Wrote:do i do this with the mceremote plugin and the keymap.xml file? haven't done this before but trying now, would like more input please.

Start by creating a custome keyboard.xml to map the action to some convenient key on the keyboard and check it works. There is a keymap editor on http://xbmcmce.sourceforge.net/ if you're not keen on writing XML code in Notepad (I'm not :-).

If this works and you want to map a button on the remote to it use the keymap editor again. It has a "detect keypress" option so just enable this and press the selected button on your remote.

JR
find quote
>>X<< Offline
Alaska Group
Posts: 2,900
Joined: Jun 2009
Location: On a farm trying to catch a fox
Post: #19
As jhsrennie said you just need to add it in the keyboard.xml I tested it using "e" as I knew that wasn't already being used just put it on a button you don't use on your remote

Code:
<e>CleanLibrary(video)</e>
find quote
prophetizer Offline
Senior Member
Posts: 277
Joined: Sep 2008
Reputation: 2
Post: #20
cool thanks guys will try this when i get home.

--
[Image: watched-clearlogo.jpg]
find quote