[RELEASE] Texture Cache Maintenance utility
Hi Milhouse - thanks for the replies Blush
(2016-02-24, 16:22)Milhouse Wrote: Someone started a database clean...
Code:
04:24:39 949.031128 T:140058405365504  NOTICE: CleanDatabase: Starting videodatabase cleanup ..
04:24:39 949.031189 T:140058405365504   DEBUG: CAnnouncementManager - Announcement: OnCleanStarted from xbmc
04:24:39 949.031433 T:140058405365504   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnCleanStarted

You can't run a database clean and a database scan at the same time...
Ghosts in The Machine... it wasn't me Confused More likely our friend Artwork Beef is trying to be helpful. Just checked my Beef Settings, and "Automaically add artwork for new items" is checked. I'll disable it and see if the qax still hangs.

(2016-02-24, 16:22)Milhouse Wrote: Can you dump Tron Legacy with:
Code:
texturecache.py jd movies "tron legacy"
and post the output?

Ummm... OK. Running it returns nothing - no screen output at all, just a new command line. The texturecache.log says this (ie: "Chunk processing: found 0 movies"), yet I see the Tron folder in my Movies_VTS folder, and the movie appears in the list & plays in kodi Huh

For curiosity, I tried our old friend enron - no problem there:
Code:
OpenELEC:~/.kodi/userdata/_TextureCache # ./texturecache.py jd movies enron
[
  {
    "art": {
      "clearlogo": "image://smb://FREENAS/media/Movies/Enron - The Smartest Guys in the Room (2005)/Enron - The Smartest Guys in the Room (2005) [DVDRip]-logo.png/",
      "fanart": "image://smb://FREENAS/media/Movies/Enron - The Smartest Guys in the Room (2005)/Enron - The Smartest Guys in the Room (2005) [DVDRip]-fanart.jpg/",
      "fanart1": "image://http://image.tmdb.org/t/p/original/jkpTcreM7YOUF4RaDTgTAy9aMJZ.jpg/",
      "fanart2": "image://http://image.tmdb.org/t/p/original/xyRUJPaztu3XFF4YXPmwNoK6fRv.jpg/",
      "poster": "image://smb://FREENAS/media/Movies/Enron - The Smartest Guys in the Room (2005)/Enron - The Smartest Guys in the Room (2005) [DVDRip]-poster.jpg/"
    },
    "file": "smb://FREENAS/media/Movies/Enron - The Smartest Guys in the Room (2005)/Enron - The Smartest Guys in the Room (2005) [DVDRip].mkv",
    "label": "Enron: The Smartest Guys in the Room",
    "movieid": 2360,
    "title": "Enron: The Smartest Guys in the Room"
  }
]
OpenELEC:~/.kodi/userdata/_TextureCache #

Not quite sure how to deal with the fanart1/ fanart2/ etc. stuff from The Beef - any opinion ?

(2016-02-24, 16:22)Milhouse Wrote: The following... would suggest you have a poster called /storage/media/Movies_VTS/Tron Legacy (2011)/VIDEO_TS-poster.jpg, and this is why mklocal.py is using it.

Can you dump the directory contents with the following command:
Code:
texturecache.py directory "smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)"
and post the output.

Sure:
Code:
OpenELEC:~/.kodi/userdata/_TextureCache # ./texturecache.py directory "smb://FREENAS/media/Movies_VTS/Tron Leg
acy (2011)"
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/Tron Legacy (2011)-banner.jpg
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/Tron Legacy (2011)-clearlogo.png
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/Tron Legacy (2011)-fanart.jpg
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/Tron Legacy (2011)-poster.jpg
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/Tron Legacy (2011).nfo
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VIDEO_TS.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VIDEO_TS.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VIDEO_TS.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VIDEO_TS.nfo
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_01_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_01_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_01_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_02_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_02_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_02_0.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_02_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_03_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_03_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_03_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_2.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_3.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_04_4.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_05_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_05_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_05_0.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_05_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_06_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_06_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_06_0.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_06_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_07_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_07_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_07_1.VOB
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_08_0.BUP
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_08_0.IFO
FILE: smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/VTS_08_1.VOB
DIR : smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/extrafanart
DIR : smb://FREENAS/media/Movies_VTS/Tron Legacy (2011)/extrathumbs
OpenELEC:~/.kodi/userdata/_TextureCache #

As I said, no VIDEO_TS-<type> images in any of these parent movie folders.

(2016-02-24, 16:37)Milhouse Wrote: Thinking about this a little more... it appears mklocal.py is detecting the mediafile as VIDEO_TS.IFO, which causes it to interpret the movie prefix as VIDEO_TS, so all artwork is downloaded as VIDEO_TS-<type> ie. VIDEO_TS-poster.jpg.

Although not ideal, this shouldn't cause any issues.

Yes exactly. As far as Kodi is concerned, it launches VIDEO_TS.IFO to play the Tron movie, the rest is all metadata magic. Maybe I'm confused - is there not ongoing harm in the script constantly overwriting my manual corrections (ie: "Choose art" dialog fix) with file references that don't exist in the media folder ?

(2016-02-24, 16:37)Milhouse Wrote: A longer term solution might be to modify mklocal.py so that it doesn't use the movie name prefix when the prefix is VIDEO_TS, in which case the artwork would be name poster.jpg not VIDEO_TS-poster.jpg. Or it uses the parent folder name as the movie name prefix.

Yes, please - an exception for when the movie-name contains VIDEO_TS. Using parent-folder-name as prefix- makes most sense to me Wink

And a final question or clarification: when my manually created movie-name-banner.jpg is not yet known to the database, how does it get there the first time ? Which one of these many steps says (figuratively) "Oh look, a local file that's not associated to it's movie... I will do that now" ? I'm lost in the forest amongst the trees on this Confused

Thanks again Milhouse for answers & insights !

EDIT:
OK, tried the qax thing again - and again, something starts scanning the library part way through. I think it might be skin widget related (I'm no log-diviner, to be sure !). Is there a way to lock out other processes until my job finishes ?
::  LibreELEC 9.0.0 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.1-U7 (RAID-Z2)  ::
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by gjwAudio - 2016-02-25, 00:11
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 utility4.7617