[RELEASE] Texture Cache Maintenance utility
Quote:I think this is some sort of cut and paste error - note the "?" after director. When I try your string (copying & pasting directly from the forum) I get the following error in the texturecache.log (which you can enable with @logfile=):
Code:
2015-01-09 15:35:39.671399:MainThread: libMovies.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "title"}, "properties": ["title", "art", "imdbnumber", "plot", "plotoutline", "votes", "rating", "top250", "runtime", "country", "genre", "director\u200b\u200b", "writer", "year"], "limits": {"start": 0, "end": 400}}, "method": "VideoLibrary.GetMovies", "id": "libMovies"}]

Note the unicode rubbish that has been appended to "director".

Clean up your command line, and try again.

I thought it was a mistake I was making, will try that once I get the art work locations fixed. Thank you, I would never have seen it.

Quote:Yes, that looks fine. You might also want to add "--readonly" which would stop it from trying to download any remote artwork (assuming you have any remote - ie. internet based - artwork urls in your library).

Tips when running mklocal.py for the first time:

#1: Try using a single movie, ie. "texturecache.py jd movies avatar" until you get it working correctly - it saves time
#2: View the output of mklocal.py before running it through "texturecache.py set" (removing the --output argument will cause the change details to be written to the console)
#3: Add --verbose if you don't get the expected results, then try to understand what mklocal.py is doing and maybe why it is failing
#4: Only once you're happy with the proposed changes should you run the changes through "texturecache.py set"
#5: If you still don't get the expected results, upload the full console output to pastebin and paste the url here. The output from "texturecache.py jd ..." would also be useful.

With your tips, I came up with:
Code:
texturecache.py Jd movies "Dirty Dancing" | mklocal.py --local L:\Videos --prefix "smb://MEDIA-SERVER/FTP Main/Videos/" --nokeep --artwork fanart poster clearlogo clearart --verbose
and it seems to run fine, fixing up the bad image location to the correct smb path, just like I wanted. Verbose output is showing:
Code:
C:\>texturecache.py Jd movies "Dirty Dancing" | mklocal.py --local L:\Videos --prefix "smb://MEDIA-SERVER/FTP Main/Videos/" --nokeep --artwork fanart poster clearlogo clearart --verbose
Current configuration:

  Local Path    : L:\Videos\
  Alt Local     : Not specified
  XBMC Path     : smb://MEDIA-SERVER/FTP Main/Videos/
  Read Only     : No
  Dry Run       : No
  Single Folder : No

  Artwork       : fanart       as fanart.[png,jpg]
                  poster       as poster.[png,jpg]
                  clearlogo    as logo.[png,jpg]
                  clearart     as clearart.[png,jpg]

  Checking      : Not Specified

##DEBUG## mediatype [movie]; mediatitle [Dirty Dancing]
##DEBUG##   mediafile is [smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing (1987)/Dirty Dancing.mp4]
##DEBUG##   local root name would be [L:\Videos\13 & Older\Movies\Dirty Dancing (1987)\Dirty Dancing]
##DEBUG##   artwork type [fanart] known by XBMC as [F:\xbmc_videodb_2013-09-05\movies\Dirty_Dancing_1987-fanart.jpg]
##DEBUG##     [fanart    ] Lookup non-HTTP file using current url:  F:\xbmc_videodb_2013-09-05\movies\Dirty_Dancing_1987-fanart.jpg [FAIL]
##DEBUG##     [fanart    ] No alt source for non-HTTP files, using:
##DEBUG##     [fanart    ] Converting local filename to XBMC path:
##DEBUG##     [fanart    ] Assigning null value to library item
##DEBUG##   artwork type [poster] known by XBMC as [F:\xbmc_videodb_2013-09-05\movies\Dirty_Dancing_1987-poster.jpg]
##DEBUG##     [poster    ] Found pre-existing local file:           L:\Videos\13 & Older\Movies\Dirty Dancing (1987)\Dirty Dancing-poster.jpg
##DEBUG##     [poster    ] Converting local filename to XBMC path:  smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing (1987)/Dirty Dancing-poster.jpg
##DEBUG##     [poster    ] Changing library value to:               smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing (1987)/Dirty Dancing-poster.jpg
##DEBUG##   artwork type [clearlogo] known by XBMC as [None]
##DEBUG##     [clearlogo ] No library change required, keeping:
##DEBUG##   artwork type [clearart] known by XBMC as [None]
##DEBUG##     [clearart  ] No library change required, keeping:
##DEBUG## mediatype [movie]; mediatitle [Dirty Dancing: Havana Nights]
##DEBUG##   mediafile is [smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing - Havana Nights (2004)/Dirty Dancing - Havana Nights.mp4]
##DEBUG##   local root name would be [L:\Videos\13 & Older\Movies\Dirty Dancing - Havana Nights (2004)\Dirty Dancing - Havana Nights]
##DEBUG##   artwork type [fanart] known by XBMC as [F:\xbmc_videodb_2013-09-05\movies\Dirty_Dancing__Havana_Nights_2004-fanart.jpg]
##DEBUG##     [fanart    ] Found pre-existing local file:           L:\Videos\13 & Older\Movies\Dirty Dancing - Havana Nights (2004)\Dirty Dancing - Havana Nights-fanart.jpg
##DEBUG##     [fanart    ] Converting local filename to XBMC path:  smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing - Havana Nights (2004)/Dirty Dancing - Havana Nights-fanart.jpg
##DEBUG##     [fanart    ] Changing library value to:               smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing - Havana Nights (2004)/Dirty Dancing - Havana Nights-fanart.jpg
##DEBUG##   artwork type [poster] known by XBMC as [F:\xbmc_videodb_2013-09-05\movies\Dirty_Dancing__Havana_Nights_2004-poster.jpg]
##DEBUG##     [poster    ] Found pre-existing local file:           L:\Videos\13 & Older\Movies\Dirty Dancing - Havana Nights (2004)\Dirty Dancing - Havana Nights-poster.jpg
##DEBUG##     [poster    ] Converting local filename to XBMC path:  smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing - Havana Nights (2004)/Dirty Dancing - Havana Nights-poster.jpg
##DEBUG##     [poster    ] Changing library value to:               smb://MEDIA-SERVER/FTP Main/Videos/13 & Older/Movies/Dirty Dancing - Havana Nights (2004)/Dirty Dancing - Havana Nights-poster.jpg
##DEBUG##   artwork type [clearlogo] known by XBMC as [None]
##DEBUG##     [clearlogo ] No library change required, keeping:
##DEBUG##   artwork type [clearart] known by XBMC as [None]
##DEBUG##     [clearart  ] No library change required, keeping:

I liked the output so I then tried:
Code:
C:\>texturecache.py Jd movies "Dirty Dancing" | mklocal.py --local L:\Videos --prefix "smb://MEDIA-SERVER/FTP Main/Videos/" --nokeep --artwork fanart poster clearlogo clearart --output "c:\Data Files\fixup.dat"
Progress: 2 of 2

That completed as expected, Output file posted to here:

but, when I tried to run:
Code:
cat "c:\Data Files\fixup.dat" | texturecache.py set
I get the following error:
Code:
C:\>cat "c:\Data Files\fixup.dat" | texturecache.py set
'cat' is not recognized as an internal or external command,
operable program or batch file.

I think this is a windows issue though, 'cat' does not seem to be a DOS command.

Sorry for the huge post.
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 Mychale - 2015-01-09, 23:10
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