[RELEASE] Texture Cache Maintenance utility
Nice script, I didn't even really think about the fact RaspBMC wouldn't automatically prune the stuff not on your HDD's etc. anymore.
I added it to my /.xbmc/userdata dir and "cp texturecache.py texturecache.cfg" so I can reach it from my Pi and run it without having to SSH into it every single time.

I'm getting these errors when running it on my Pi:

Code:
Traceback (most recent call last):
  File "./texturecache.py", line 7168, in <module>
    main(sys.argv[1:])
  File "./texturecache.py", line 6906, in main
    loadConfig(argv)
  File "./texturecache.py", line 6497, in loadConfig
    gConfig = MyConfiguration(argv)
  File "./texturecache.py", line 133, in __init__
    config.readfp(cfg)
  File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
        [line 34]: 'import os, sys, platform, re, datetime, time\n'
        [line 35]: 'import socket, base64, hashlib\n'
        [line 36]: 'import threading, random\n'
        [line 37]: 'import errno, codecs\n'
        [line 38]: 'import subprocess\n'

By the way, is there a way to get this to run automatically and delete all artwork (thumbnails, posters, other big @ss stuff) not seen for about a week without having to constantly do this?
Like uhmm a cronjob? or just some random executable?
I'm on an 8GB SD card and I'm bound to forget to do this regularly ending with a Pi that doesn't want to boot (again, lol happened to me already Tongue).
I'm kind of building this Pi to do everything automatic so running this automatically and correctly would be awesome.

It's not like I'm bad with Linux but I suck at python so if you could tell me what I need to set up or something I'd be much obliged Smile.
Reply


Messages In This Thread
RE: [RELEASE] Texture Cache Maintenance utility - by ThaMadHatter - 2014-04-08, 00:33
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17