Release - XBMC File Cleaner

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
music_lover Online
Junior Member
Posts: 38
Joined: Aug 2014
Reputation: 0
Location: SE MASS
Post: #151
Quote:Any video that satisfies both these conditions (watched, and watched in the last x days) will indeed be cleaned up eventually, should you have enabled those filters.

So this is the opposite of what I want. I want to keep videos I set the watched setting on; and clean videos I skip after a few seconds/minutes(not watched setting). Can you add a checkbox to reverse the setting?

What I need is a "preview mode", where I watch and decide whether to keep it in the library or not. After a minute or so, I know whether i want it or not.
find quote
schumi2004 Offline
Posting Freak
Posts: 1,438
Joined: Aug 2011
Reputation: 14
Post: #152
Is this addon capable of cleaning my HDD based on certain criteria, for example no video files available and then delete dir from HDD?
find quote
greenri Offline
Junior Member
Posts: 4
Joined: Oct 2014
Reputation: 0
Post: #153
(2014-10-15 23:23)Anthirian Wrote:  
(2014-10-14 17:33)music_lover Wrote:  So, to create this scenario by the AO settings, I would set:

Expire After = 1 day? - how exactly does expire_after work with last played?

by_date_played = {"field": "lastplayed", "operator": "notinthelast", "value": "%d" % get_setting(expire_after)}

so, for however amount of expiry days I set, eventually every video I don't play all the way through (according to the playcount min setting) will get whacked?
expire_after uses a value that will be used with SQL to retrieve videos from the library. It takes an integer value, and combined with the last_played time, including seconds, that is stored in the library, this means it is actually quite accurate. All videos that are marked as played after the number of days you enter here will indeed be cleaned up. However music videos, as stated, do not have resume points, meaning they will first have to be watched past the percentage you can specify in advancedsettings.xml before they even get marked watched. Any video that satisfies both these conditions (watched, and watched in the last x days) will indeed be cleaned up eventually, should you have enabled those filters.

(2014-10-14 22:46)greenri Wrote:  Hi,

I am running the add-on on on a Raspberry Pi (running XBian) and whenever I run the add-on it states "no cleaning required" but I have everything ticked in the config and there are plenty of files that need to be deleted. I have attached a cut down version of the log (just for when it runs) and I'm not sure it is running correctly? Any help would be appreciated, thanks in advance! Smile

http://pastebin.com/bP02X3x6
Unfortunately this clipped log does not show the addon is even starting at all. Please upload the full log instead.

I've removed all the Cec errors that spam my logs so i could fit the full log on pastebin, here is the full log. Thank you Smile

http://pastebin.com/kiSPS2d8
find quote
Anthirian Offline
Senior Member
Posts: 104
Joined: Jan 2012
Reputation: 1
Post: #154
(2014-10-16 19:53)music_lover Wrote:  
Quote:Any video that satisfies both these conditions (watched, and watched in the last x days) will indeed be cleaned up eventually, should you have enabled those filters.

So this is the opposite of what I want. I want to keep videos I set the watched setting on; and clean videos I skip after a few seconds/minutes(not watched setting). Can you add a checkbox to reverse the setting?

What I need is a "preview mode", where I watch and decide whether to keep it in the library or not. After a minute or so, I know whether i want it or not.
Doesn't this defeat the purpose of the addon? It's meant to clean up any videos you have already watched. If it were to clean up videos you haven't watched, then how would you be able to watch any new videos? Besides, it takes quite a lot of work to implement this in the current code and I can't imagine a large number of people using it. It would probably create a lot of confusion among non-tech-savvy people.

(2014-10-18 01:58)schumi2004 Wrote:  Is this addon capable of cleaning my HDD based on certain criteria, for example no video files available and then delete dir from HDD?
I'm not quite sure what you mean exactly, but I'll try to explain how it works. This addon cleans any video in the library by either moving or deleting it. If during this process the folder becomes empty (configurable: ignoring certain file extensions), it could delete that too. Any folders that were empty before cleaning a video from it will not be touched. I have been thinking about adding such a feature, but it would mean exploring a lot of different scenarios and will bring a lot of new problems to the table, such as deciding how many parent folders should be deleted as well. It may or may not be added in the future, but it certainly won't be anytime soon if it is.

(2014-10-22 09:56)greenri Wrote:  I've removed all the Cec errors that spam my logs so i could fit the full log on pastebin, here is the full log. Thank you Smile

http://pastebin.com/kiSPS2d8
Thanks. What I can see is the addon is in fact being loaded by XBMC, but I can't see it starting up. Could you please also post the contents of your /home/xbian/.xbmc/userdata/addon_data/script.filecleaner/settings.xml? This will allow me to inspect your current settings. Also, have you tried manually starting the addon instead of waiting for it to launch at XBMC startup?

[Image: all-thin-banner@2x.jpg]
find quote
greenri Offline
Junior Member
Posts: 4
Joined: Oct 2014
Reputation: 0
Post: #155
Hi,

Please find my settings.xml below:

http://pastebin.com/VChwx0ep

When I run file cleaner from programs -> XBMC File Cleaner the notification pops up saying "No cleaning required". I managed to get the full log uploaded here, (I ran file cleaner towards the end of the log ~ line 2813)

http://xbmclogs.com/show.php?id=326885

Thanks again Smile
find quote
Post Reply