2020-05-12, 22:11
So I recently had to reinstall my Windows 10 PC running Kodi 18.6
I figured I'd do a clean Kodi install as well, to be sure everything was nice and clean.
However, in order to keep my watchmarks and resume points, but still get a fresh set of databases I did a Library export to a single file.
After reinstalling everything I then imported the .xml file and everything looked great.
Untill I deleted the exported library files and discovered that most of the posters, banners and thumbnails were now missing. But for some reason not all of them(?)
At first I tried deleting the thumbnails folder and the textures13.db and have Kodi autodownload the missing artwork, but that didn't help.
Then I downloaded texturecache.py and tried recaching everything by running
This ran for some time, but didn't solve the problem, but instead generated a bunch of errors like this one (When running texturecache.py specifically against the movie Bringing Up Baby):
Apparently textures13.db isn't the only place, image locations are stored.
I downloaded DBBrowser and checked the art table of MyVideos116.db, which showed that 11348 rows out of 18621 pointed to the local C:\temp... path from my import.
Feeling adventurous I took a backup of MyVideos116.db and the tried deleting all of the 11348 rows, and then rerunning texturecache.py but sadly that didn't fix the problem either.
It actually caused Kodi to crash and freeze, so I restored the backup of MyVideos116.db
If I manually open the info page for each movie, or tvshow episode, and manually choose the poster art, it is fixed for that individual movie/episode. However this is not really a viable solution.
Is there any way to get texturecache.py to fix MyVideos116.db as well?
Or even better, a way to import the XML without the local paths?
I have no idea where the filenames are even comming from, as I have always had Kodi control posters and so on through the Thumbnails directory and textures13.db.
I have never had local images anywhere in my media sources.
I figured I'd do a clean Kodi install as well, to be sure everything was nice and clean.
However, in order to keep my watchmarks and resume points, but still get a fresh set of databases I did a Library export to a single file.
After reinstalling everything I then imported the .xml file and everything looked great.
Untill I deleted the exported library files and discovered that most of the posters, banners and thumbnails were now missing. But for some reason not all of them(?)
At first I tried deleting the thumbnails folder and the textures13.db and have Kodi autodownload the missing artwork, but that didn't help.
Then I downloaded texturecache.py and tried recaching everything by running
Code:
texturecache.py C
This ran for some time, but didn't solve the problem, but instead generated a bunch of errors like this one (When running texturecache.py specifically against the movie Bringing Up Baby):
Code:
c:\Python27\python.exe texturecache.py C movies "Bringing Up Baby"
Caching artwork: 0 items remaining of 20 (qs: 0, qm: 0), 2 errors, 0 threads active (02.00 downloads per second, ETA: 00:00:00)
The following items could not be downloaded:
[fanart ] [Bringing Up Baby ] C:\Temp\kodi_videodb_2020-05-12\movies\Bringing_Up_Baby_1938-fanart.jpg
[poster ] [Bringing Up Baby ] C:\Temp\kodi_videodb_2020-05-12\movies\Bringing_Up_Baby_1938-poster.jpg
Cache pre-load activity summary for "movies", filtered by "Bringing Up Baby":
| cast.thumb | fanart | poster | TOTAL
--------------+-------------+-------------+-------------+-------------
Cached | 18 | - | - | 18
Deleted | 18 | - | - | 18
Duplicate | - | - | - | 0
Error | - | 1 | 1 | 2
Ignored | - | - | - | 0
Skipped | - | - | - | 0
Undefined | - | - | - | 0
======================================================================
TOTAL | 36 | 1 | 1 | 38
Download Time | 00:00:02.31 | 00:00:01.71 | 00:00:01.72 | 00:00:03.36
Apparently textures13.db isn't the only place, image locations are stored.
I downloaded DBBrowser and checked the art table of MyVideos116.db, which showed that 11348 rows out of 18621 pointed to the local C:\temp... path from my import.
Code:
Result: 11348 rows returned in 625ms
At line 1:
select * from art where url like "C:%"
Feeling adventurous I took a backup of MyVideos116.db and the tried deleting all of the 11348 rows, and then rerunning texturecache.py but sadly that didn't fix the problem either.
It actually caused Kodi to crash and freeze, so I restored the backup of MyVideos116.db
If I manually open the info page for each movie, or tvshow episode, and manually choose the poster art, it is fixed for that individual movie/episode. However this is not really a viable solution.
Is there any way to get texturecache.py to fix MyVideos116.db as well?
Or even better, a way to import the XML without the local paths?
I have no idea where the filenames are even comming from, as I have always had Kodi control posters and so on through the Thumbnails directory and textures13.db.
I have never had local images anywhere in my media sources.