Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
If Kodi is crashing you'll need to upload a crashlog to have any idea of what is causing the crash - depending on your OS and build this may or may not be available (it's available in OpenELEC test builds, but not release builds).
If you're using (or able to use) one of my OpenELEC test builds I can upload a debug-enabled test build later this evening which will provide a detailed crashlog.
Also, you should start a separate thread to continue the discussion as although TextureCache is provoking the crash, it's not doing anything out of the ordinary so this is really an issue with Kodi core functionality.
Presumably running "texturecache.py vscan 'nfs://192.168.48.31/volume2/filme/Foreign Correspondent (1940)'" doesn't produce a crash, which would suggest it's an accumulated error. One possible reason for the crash might be out of memory, due to memory leak - try running "bcmstat.sh AD" (included in my builds) to keep an eye on memory usage during the qax operation, perhaps all memory is exhausted by the time you get to "F". "journalctl --no-pager | paste" (on OpenELEC) would include details of any out-of-memory activity.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 1
Joined: Dec 2015
Reputation:
0
Hi there, first of all thanks for the great script. I have a small problem, maybe you can help:
I had some orphaned/wrong entries in the art-table of the MyMovies93.db which path/url was at "/var/tmp/..."which is after an upgrade from 14.x to 15.x is no longer there. That were the posters and fanart of various entries. I used sqllitebrowser to load the db and remove all entries in the art table.
After that I ran texturecache.py qax (and edited before the cfg file to scan for entries up to 9999 days old) but the missing fanart and posters are just "WARN" and not "FAIL" and get therefore not corrected/re-scanned.
I also tried variants of c, C, p, P but none of that worked
Any advice how to automatically rescan those movies/tvshows which have a WARN? Or a way to make them a FAIL so they get re-scanned?
(e.g.
WARN (missing fanart; missing poster)
WARN (missing fanart, local not found; missing poster, local not found; missing banner, local not found)
WARN (missing poster)
WARN (missing thumb, local not found)
)
The relevant entries in the cfg-file are:
allow.recacheall=yes
qa.file = yes
qaperiod = 9999
Many thanks in advance...
Posts: 5,284
Joined: Jul 2012
Reputation:
343
Windows user. Recently installed cygwin. Do you recommend running your scripts under bash rather than cmd or maybe powershell?
scott s.
.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
Plain cmd with Python works (as per the installation instructions), there's no need for bash/cygwin./etc.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 111
Joined: Sep 2014
Reputation:
1
kuldan
Senior Member
Posts: 111
Hi, this may be a stupid question but... when I initially scanned my DB, there were a few local fanarts available to kodi (a few = several hundred..) which have been deleted in the interim, so all these files are missing posters etc on new machines which try to build their texture cache... is there any way to get these to download the artwork from the internet instead using the script (or another method) without doing it one by one? I understand that the locations are in the kodi database, not textures.db... so I'm unsure how to purge without rem,oving and rescanning the libary (which has MANY entrys that had to be manually fixed, so not an option right now...)
thanks for any ideas and nudges in the right direction!
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2015-12-15, 22:39
(This post was last modified: 2015-12-15, 22:39 by Milhouse.)
You can use mklocal.py with the "--nokeep --readonly" options - this will remove artwork that is no longer accessible from the media library. Afterwards you can use something like Artwork Downloader to re-associate the movies with internet-based artwork.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 1,074
Joined: Jun 2012
Reputation:
16
2015-12-24, 09:30
(This post was last modified: 2015-12-24, 09:50 by McButton.)
I'm having an issue where I need to reload all the tvshow.nfo for my whole library and wipe the old cached version. I removed the source, cleaned and re-added, but it didn't fix my problem. I need to manually remove and re-add each show.
What command would I do to execute this rather than spending hours removing and re-scraping?
I already used P,p,C, & c & aclean/vclean to clear up any garbage, but it seems that nothing happened to reload/wipe my nfos.
--------------------
Also, when I get The following items are present in the texture cache but not the media library: from a (p) ...why would it show .jpg and .avi files that I have in the source? The directory is perfect.
(Its mostly all extra fanart and 1 set of .avi Extras that I manually added)
Posts: 1,074
Joined: Jun 2012
Reputation:
16
Excellent. Odd that source removal didn't fix it. I'll just do manual rescrapes. Looks like only about 30 were having an issue. 20 minute fix. Thanks much!