2015-02-24, 01:12
(2015-02-23, 21:56)Xtropy Wrote: My question is, since http://cf2.imgobject.com is no longer valid, is there a quick and easy way to change all entries in my database to http://image.tmdb.org/ ?
This is fairly easy to script with a small Python/JSON program. I've added such a program, fixart.py.
Install:
Code:
curl https://raw.githubusercontent.com/MilhouseVH/texturecache.py/master/tools/fixart.py -o fixart.py && chmod +x ./fixart.py
To use it:
Code:
./texturecache.py jd movies | ./fixart.py --from "http://cf2.imgobject.com" --to "http://image.tmdb.org" > changes.dat
and then apply the changes (assuming you're happy with the content of the changes.dat file):
Code:
cat changes.dat | ./texturecache.py set
It should also work for sets and tvshows, just change the media type on the jd option.
(2015-02-23, 21:56)Xtropy Wrote: I am not sure where these pointers come from (textures##.db or mymovies##.db) and wanted to check before I make things worse (sorry not a DB guy at all). Maybe there is a way to change these using texturecache.py?
MyMovies##.db.
This particular problem (remote artwork disappearing/moving) is why remote artwork becomes increasingly hazardous when adding additional clients in a MySQL configuration - you're much better off using local-only artwork (see mklocal.py) so that you can avoid this kind of thing.