2016-01-18, 17:36
(2016-01-18, 17:08)redglory Wrote: Hey,Thanks for your reply.
What do you get by running:
?Code:python texturecache.py @imdb.fields.movies
I get this:
Code:
Version: 2.2.7
Usage: texturecache.py [s, S] <string> |
[x, X, f, F] [sql-filter] |
Xd |
d <id[id id]>] |
c [class [filter]] |
nc [class [filter]] |
lc [class] |
lnc [class] |
C class filter |
[j, J, jd, Jd, jr, Jr] class [filter] |
qa class [filter] |
qax class [filter] |
[p, P] |
[r, R] |
imdb movies [filter] |
purge hashed|unhashed|all pattern [pattern [pattern]] |
purgetest hashed|unhashed|all pattern [pattern [pattern]] |
fixurls |
remove mediatype libraryid |
watched class backup <filename> [filter] |
watched class restore <filename> [filter] |
duplicates |
set |
testset |
set class libraryid key1 value 1 [key2 value2...] |
missing class src-label [src-label]* |
ascan [path] |
vscan [path] |
aclean |
vclean |
sources [media] |
sources media [label] |
directory path |
rdirectory path |
readfile infile [outfile | -] |
notify title message [displaytime [image]] |
status [idleTime] |
monitor |
power <state> |
exec [params] |
execw [params] |
wake |
rbphdmi [seconds] |
stats [class]* |
input action* [parameter] |
screenshot |
volume [mute|unmute|#] |
stress-test view-type numitems [pause] [repeat] [cooldown] |
setsetting name value |
getsetting name |
getsettings [pattern] |
debugon |
debugoff |
play item [playerid] |
playw item [playerid] |
stop [playerid] |
pause [playerid] |
config |
version |
update |
fupdate
[@property=value ...]
s Search URL column for partial movie or TV show title. Case-insensitive.
S Same as "s" (search) but will validate cachedurl file exists, displaying only those that fail validation
x Extract details, using optional SQL filter
X Same as "x" (extract) but will validate cachedurl file exists, displaying only those that fail validation
Xd Same as "x" (extract) but will DELETE those rows for which no cachedurl file exists
f Same as x, but includes file summary (file count, accumulated file size)
F Same as f, but doesn't include database rows
d Delete rows with matching ids, along with associated cached images
c Re-cache missing artwork. Class can be movies, tags, sets, tvshows, artists, albums or songs.
C Re-cache artwork even when it exists. Class can be movies, tags, sets, tvshows, artists, albums or songs. Class and filter both mandatory unless allow.recacheall=yes.
nc Same as c, but don't actually cache anything (ie. see what is missing). Class can be movies, tags, sets, tvshows, artists, albums or songs.
lc Like c, but only for content added since the modification date of the file specficied in property lastrunfile
lnc Like nc, but only for content added since the modification date of the file specficied in property lastrunfile
j Query library by class (movies, tags, sets, tvshows, artists, albums or songs) with optional filter, return JSON results.
J Same as "j", but includes extra JSON audio/video fields as defined in properties file.
jd, Jd Functionality equivalent to j/J, but all URLs are decoded
jr, Jr Functionality equivalent to j/J, but all URLs are decoded and non-ASCII characters output (ie. "raw")
qa Run QA check on movies, tags and tvshows, identifying media with missing artwork or plots
qax Same as qa, but remove and rescan those media items with missing details.
Configure with qa.zero.*, qa.blank.* and qa.art.* properties. Prefix field with ? to render warning only.
p Display files present in texture cache that don't exist in the media library
P Prune (automatically remove) cached items that don't exist in the media library
r Reverse search to identify "orphaned" Thumbnail files that are not present in the texture cache database
R Same as "r" (reverse search) but automatically deletes "orphaned" Thumbnail files
imdb Update IMDb fields (default: ratings and votes) on movies - pipe output into set to apply changes to media library. Specify alternate fields with @imdb.fields
purge Remove cached artwork with URLs containing specified patterns, with or without hash
purgetest Dry-run version of purge
fixurls Output new URLs for movies, sets and TV shows that have URLs containing both forward and backward slashes. Output suitable as stdin for set option
remove Remove a library item - specify type (movie, tvshow, episode or musicvideo) and libraryid
watched Backup or restore movies and tvshows watched status and restore points, to/from the specified text file
duplicates List movies with multiple versions as determined by imdb number
set Set values on objects (movie, tvshow, episode, musicvideo, album, artist, song) eg. "set movie 312 art.fanart 'http://assets.fanart.tv/fanart/movies/19908/hdmovielogo/zombieland-5145e97ed73a4.png'"
testset Dry run version of set
missing Locate media files missing from the specified media library, matched against one or more source labels, eg. missing movies "My Movies"
ascan Scan entire audio library, or specific path
vscan Scan entire video library, or specific path
aclean Clean audio library
vclean Clean video library
sources List all sources, or sources for specific media type (video, music, pictures, files, programs) or label (eg. "My Movies")
directory Retrieve list of files in a specific directory (see sources)
rdirectory Recursive version of directory
readfile Read contents of a remote file, writing output to stdout ("-", but not suitable for binary data) or the named file (suitable for binary data)
notify Send notification to Kodi GUI. Requires title and message arguments, with optional displaytime in milliseconds (default 5000) and image/icon location
status Display state of client - ScreenSaverActive, SystemIdle (default 600 seconds), active Player state etc.
monitor Display client event notifications as they occur
power Control power state of client, where state is one of suspend, hibernate, shutdown, reboot and exit
wake Wake (over LAN) the client corresponding to the MAC address specified by property network.mac
exec Execute specified addon, with optional parameters
execw Execute specified addon, with optional parameters and wait (although often wait has no effect)
rbphdmi Manage HDMI power saving on a Raspberry Pi by monitoring Screensaver notifications. Default power-off delay is 900 seconds after screensaver has started.
stats Output media library stats
input Send keyboard/remote control input to client, where action is back, left, right, up, down, executeaction, sendtext etc.
volume Set volume level 0-100, mute or unmute, or display current mute state and volume level
stress-test Stress GUI by walking over library items. View type: thumbnail, horizontal, vertical. Default pause 0.25, repeat 1, cooldown (in seconds) 0.
screenshot Take a screen grab of the current display
setsetting Set the value of the named setting, eg. 'setsetting locale.language English'
getsetting Get the current value of the named setting, eg. 'getsetting locale.language'
getsettings View details of all settings, or those where pattern is contained within id, eg. 'getsettings debug' to view details of all debug-related settings
debugon Enable debugging
debugoff Disable debugging
play Play the specified item (on the specified player: null, default, #)
playw Play the specified item (on the specified player: null, default, #), and wait until playback ends
stop Stop playback of the specified player, or all currently active players
pause Toggle pause/playback of the specified player, or all currently active players
config Show current configuration
version Show current version and check for new version
update Update to new version (if available)
Valid media classes: addons, pvr.tv, pvr.radio, artists, albums, songs, movies, sets, tags, tvshows
Valid meta classes: audio (artists + albums + songs) and video (movies + sets + tvshows) and all (audio + video + addons + pvr.tv + pvr.radio)
Meta classes can be used in place of media classes for: c/C/nc/lc/lnc/j/J/jd/Jd/qa/qax options.
SQL Filter fields:
id, cachedurl, height, width, usecount, lastusetime, lasthashcheck, url