2013-08-07, 19:37
Ah yes, not specifying a media class basically means to cache everything (ie. all) but not songs. I'll give some thought to avoiding the error...
(2013-08-05, 21:16)MilhouseVH Wrote: Thanks to CaptainKen for helping debug his problem, which is being caused by those backslashes. It turns out that XBMC is automatically converting the erroneous backslashes into forward slashes when creating entries in Textures13.db, so reconciling the media library paths (with backslashes) against the texture cache (without backslahes) was problematic...
The script will now inspect the path and replace the slashes whenever it can't find a match, so the overhead should be fairly minimal.
Version 0.8.9
- Fix: Swap back/forward slashes on JSON artwork paths whenever a slash is used incorrectly (see here for details)
(2013-08-09, 16:15)CaptainKen Wrote: I sounds like you came up with a fix so I can continue to use MSAA after all. I'll just need to run "texturecache.py c sets" after running MSAA?
(2013-08-09, 16:39)MilhouseVH Wrote:(2013-08-09, 16:15)CaptainKen Wrote: I sounds like you came up with a fix so I can continue to use MSAA after all. I'll just need to run "texturecache.py c sets" after running MSAA?
Yes, I added a workaround so that you can continue to use MSAA, but other scripts/addons may trip over the same flaw so really the problem needs to be fixed in MSAA.
nick@lounge:~$ python texturecache.py C movies
Caching artwork: 0 items remaining of 5 (qs: 0, qm: 0), 0 errors, 0 threads active (00.79 downloads per second, ETA: 00:00:00)
Cache pre-load activity summary for "movies":
| fanart | poster | thumb | TOTAL
--------------+-------------+-------------+-------------+-------------
Cached | 2 | 2 | 1 | 5
Deleted | 2 | 2 | 1 | 5
Duplicate | - | - | 1 | 1
Error | - | - | - | 0
Ignored | - | - | 255 | 255
Skipped | - | - | - | 0
Undefined | - | - | - | 0
======================================================================
TOTAL | 4 | 4 | 258 | 266
Download Time | 00:00:01.84 | 00:00:01.89 | 00:00:01.85 | 00:00:04.85
Threads Used: 2
Min/Avg/Max: 0.54 / 0.79 / 1.08
Loading: 00:00:00.63
Parsing: 00:00:00.02
Comparing: 00:00:00.01
Downloading: 00:00:05.00
TOTAL RUNTIME: 00:00:05.68
python texturecache.py jd movies
(2013-08-12, 05:03)RockDawg Wrote: MilhouseVH - I finally decided to just nuke my whole database as there were lots of of deprecated references including tons of paths to an old server I migrated from a while back, I re-scanned everything and used your app to restore the watched status, play counts and last played dates. Worked pretty darned good. One thing I noticed though is that there were a hand full of problems during the restore. I think most were due to mismatched names. For example the movie name was Lucky # Slevin, but because of character restrictions in file names I was forced to name it Lucky Number Slevin. I'm assuming it read the movie title from the db and then tried to find the file and couldn't?
There were a couple others it errored on where I couldn't see any naming discrepancy on them. All told I think I had around 20 movies where your utility didn't restore the watched status. Not a big deal at all, but thought I'd let you know in case you were able to fix it.
Thanks again for this wonderful utility. It is a truly useful tool!