2014-09-14, 00:29
It was no prompt its the default progress bar dialogue with cancel button on, which should not be visible during video playback, like none should.
(sleep 20; /storage/mytexturescript.sh) &
(2014-09-16, 15:20)raspberry_pd Wrote: I'm getting a truckload of Duplicates and I've tried a whole host of options but the number never seems to decrease. Which flag can I run to remove the duplicates?
Quote:./texturecache.py Cthough it takes a while so has not finished running through yet (Raspbmc keeps freezing on me overnight).
(2014-09-17, 15:02)raspberry_pd Wrote: Do you know a way to force XBMC to download the latest artwork from TVDB? I have a few cases where my main view - Posters in the Amber skin, horizontally squishes baners into posters when there is a legitimate poster available on the TVDB.
./texturecache.py jd tvshows <showname>
(2014-09-17, 15:02)raspberry_pd Wrote: I've been usingQuote:./texturecache.py Cthough it takes a while so has not finished running through yet
./texturecache.py C tvshows
(2014-09-17, 15:02)raspberry_pd Wrote: (Raspbmc keeps freezing on me overnight).
(2014-09-17, 17:17)Milhouse Wrote:(2014-09-17, 15:02)raspberry_pd Wrote: Do you know a way to force XBMC to download the latest artwork from TVDB? I have a few cases where my main view - Posters in the Amber skin, horizontally squishes baners into posters when there is a legitimate poster available on the TVDB.
I'm not entirely sure what the problem is.
If your media library has banner artwork in place of posters then there's not much texturecache.py can do to fix that - whatever metadata scraper you used to scrape your library has done a poor job and you'll need to fix your media library before you will be able to cache the correct artwork.
If your media library contains references to the correct artwork (posters) then its difficult to understand how this could be cached incorrectly (as banners).
You can view the artwork for a tvshow with
Code:./texturecache.py jd tvshows <showname>
and see what banners or posters are in use.
pi@raspbmc:~$ ./texturecache.py jd tvshows 'Kim Philby'
[
{
"art": {
"banner": "image://http://thetvdb.com/banners/graphical/280304-g.jpg/",
"fanart": "image://http://thetvdb.com/banners/fanart/original/280304-2.jpg/"
},
"file": "smb://<...>K/Kim.Philby-.His.Most.Intimate.Betrayal/",
"label": "Kim Philby: His Most Intimate Betrayal",
(2014-09-17, 17:17)Milhouse Wrote: More likely though it's a skin problem of some sort, with banners being displayed with the incorrect aspect ratio. Or you are missing posters from your media library so banners are used instead - you'll need to use something like the Artwork Downloader addon to try and fill in any missing artwork. Or use local artwork and re-scrape.
(2014-09-17, 17:17)Milhouse Wrote:(2014-09-17, 15:02)raspberry_pd Wrote: I've been usingQuote:./texturecache.py Cthough it takes a while so has not finished running through yet
If you just want to re-cache the artwork just for tvshows:
Code:./texturecache.py C tvshows
(2014-09-17, 20:57)raspberry_pd Wrote: I hope the problem is not due to me being stuck with all my watched statuses, and media library metadata, in an old XBMC database format. I loosely remember reading that the XBMC database schema changes often enough to be a ball ache (at least, when using an external MySQL db, which I'm not).
./texturecache.py watched movies backup movies.dat
./texturecache.py watched tvshows backup tvshows.dat
./texturecache.py watched movies restore movies.dat
./texturecache.py watched tvshows restore tvshows.dat
(2014-09-17, 20:57)raspberry_pd Wrote: I'm very happy to tweak away at curating my library to present it as cleanly as possible, just need the skills/tools Sounds like Artwork Downloader might be worth a shot, thanks again.
(2014-09-17, 20:57)raspberry_pd Wrote: Speaking of local artwork, I'm interested in using your mklocal.py again though I remember the syntax was somewhat involved and I certainly don't remember it now, it's been a whileYeah, it's a bit fiddly to get going but once you have it working it's something that I think can be quite useful. mklocal.py can convert your existing original remote artwork (if still available) to local, and can also assign any new local artwork (logos, clearart, discart etc.) it finds in your filesystem to your movies/tvshows. Any artwork no longer available remotely or found locally will be removed from the media library (unless you want them kept) allowing addons (such as AD) to repopulate the library with fresh artwork.
(2014-09-14, 02:30)Milhouse Wrote: Are you able to test one of my test builds, one that includes PR5324 - anything from #0909 onwards.
(2014-05-13, 16:23)Milhouse Wrote:Code:usage: mklocal.py [-h] [-l DIRECTORY] [-p PATH] [-A PATH] [-i [FILENAME]] [-o [FILENAME]]
[--dryrun] [-r] [--ignorebadprefix] [-a TYPE [TYPE ...]]
[-c TYPE [TYPE ...]] [-s [TYPE [TYPE ...]]] [-e [TYPE [TYPE ...]]] [-1]
[-nk] [--info] [-q | -v]
Downloads specific artwork types (default: clearart, clearlogo) based on urls in media
library (ie. original source) creating local versions. Avoids retrieving artwork from XBMC
Texture Cache as this is often resized, resampled and of lower quality. Optionally output
data that can be used to update the media library to use new local versions of artwork,
replacing any current remote versions. The same data will also remove invalid remote
artwork from the library.
optional arguments:
-h, --help show this help message and exit
-l DIRECTORY, --local DIRECTORY
Local DIRECTORY into which artwork will be WRITTEN, eg.
/freenas/media/
-p PATH, --prefix PATH
XBMC PATH prefix (eg. nfs://192.168.0.3/mnt/share/media/) that
will be substituted by --local DIRECTORY when traversing media
files. This is typically the root of the media source as defined
in sources.xml
-A PATH, --altlocal PATH
Alternate local directory which may contain artwork that can be
READ and copied to --local, could be the original source folder
-i [FILENAME], --input [FILENAME]
Optional FILENAME containing JSON movie/tvshow data for
processing. Read from stdin if FILENAME is - or not specified
-o [FILENAME], --output [FILENAME]
Output a data structure suitable for consumption by
texturecache.py [test]set, used to update an XBMC media library
converting remote urls into local urls. Written to stdout if
FILENAME is - or not specified
--dryrun Don't create anything (although downloads will be attempted)
-r, --readonly Don't download (or, if specified, copy from --altlocal) new
artwork, only use existing --local artwork
--ignorebadprefix Don't display a warning for media files with a path that does not
match that set by --prefix
-a TYPE [TYPE ...], --artwork TYPE [TYPE ...]
Artwork TYPE(s) for download, eg. "--artwork discart banner"
Specify TYPE:SUFFIX if SUFFIX differs from TYPE, eg. "--artwork
thumb:poster" would create "thumb" library items with a "-poster"
filename suffix
-c TYPE [TYPE ...], --check TYPE [TYPE ...]
Check the named artwork TYPE(s) - or "all" - and warn if any
internet (http) URLs are detected
-s [TYPE [TYPE ...]], --season [TYPE [TYPE ...]]
For TV Shows, process season items (default: poster banner
landscape)
-e [TYPE [TYPE ...]], --episode [TYPE [TYPE ...]]
For TV Shows, process episode items (default: thumb)
-1, --singlefolders Movies are in individual folders so don't use the movie-name as a
prefix
-nk, --nokeep Don't keep artwork if not able to match with pre-existing local
artwork
--info Display informational output to stdout
-q, --quiet Silence warnings about missing artwork (NEEDED etc.)
-v, --verbose Display diagnostic output
Minimum required arguments are --local, --prefix, --artwork (and --input, which if not specified is read from stdin).
For example, the following would download any remote artwork of the poster/fanart/clearart/clearlogo variety to a movie library rooted at /freenas/media, then associate any already existing or any just downloaded artwork with each movie, outputting changes to newartwork.dat:
Code:./texturecache.py jd movies zombieland | ./mklocal.py --local /freenas/media --prefix nfs://192.168.0.3/mnt/share/media --artwork poster fanart clearlogo clearart --output newartwork.dat"
mklocal.py: error: unrecognized arguments: --artwork poster fanart
./texturecache.py jd tvshows | ./mklocal.py --local /media/drobofs/ --prefix smb://DROBOFS/public/tv/ --artwork poster fanart --output newartwork.dat
Traceback (most recent call last):
File "./texturecache.py", line 7437, in <module>
main(sys.argv[1:])
File "./texturecache.py", line 7261, in main
extraFields=_extraFields, query=_query)
File "./texturecache.py", line 4012, in jsonQuery
jcomms.dumpJSON(data, decode, ensure_ascii)
File "./texturecache.py", line 2375, in dumpJSON
self.logger.out(json.dumps(data, indent=2, ensure_ascii=ensure_ascii, sort_keys=True), newLine=True)
File "./texturecache.py", line 833, in out
sys.stdout.write("%-s%s" % (udata, NL))
File "/usr/lib/python2.7/codecs.py", line 352, in write
self.stream.write(data)
IOError: [Errno 32] Broken pipe