2022-01-22, 22:18
I'm a very happy Kodi user and have been for several years, but there is one aspect of its behavior that I find frustration, and I'd like to understand it better.
I use a MySql database for my Kodi metadata and a NAS to hold my media. It works great, and it's so easy for me to spin up a new client, drop in a copy of my advanced settings xml file, and bam, I can access my whole media library.
However, I am noticing that when I spin up a new client, I am finding that a significant amount of the movie posters are not present. This is not a deal-breaker of an issue, since I can still read the metadata bout the movies and watch my files. But it does significantly degrade the experience of having a media player like Kodi in a way that I would like to improve, if I can.
I believe I understand the cause of this problem. The poster art itself is not stored in the MySql database, it's stored in the cache for each individual client. The database just stores a URL to where the file was downloaded from. When I spin up a new client, it presumably uses that URL to fetch the file and store it locally. However, if the content provider has moved or changed the file since I originally scraped the data, the link is now a 404 and there's nothing for the new client to grab.
I posted about this in the kodi subreddit with a bit of additional information, and got some comments with proposed suggestions, but none that seemed to really be the answer that I'm looking for. I also saw quite a few other people posting that they had run into this issue and that they also were not aware of a satisfactory solution.
The only solution that I know of is to essentially rescrape each movie or show that has this problem, but that is a manual process for each affected piece of media, it doesn't do anything to prevent this issue coming up again in the future, and since it basically deletes and re-adds the media to the database, it removes any tags or watched status in the process.
My first question is - is there a better, officially-supported option for dealing with this problem? Either in terms of a way to run Kodi that makes it more feasible to share these images between clients, or a way to fix this issue that is more efficient and less disruptive, either currently built into Kodi or by using an add-on? I did some looking, but I will absolutely admit that this functionality may already exist and I was just unable to find it.
If something like this doesn't exist, has there been any discussion of improving this issue that other people are aware of? Either in this forum or in the feature requests section of the github repo? It seems to me like Kodi could be able to do a partial scrape of information to replace artwork without disrupted other aspects of the metadata, and it also could be able to flag pieces of artwork in the database when it tries to request them and gets a 404 response, indicating that artwork probably doesn't live at that URL anymore.
If nobody else has started doing this work, I've considered diving into it myself. I am pretty confident I could put together something either in a standalone script, Kodi add-on, or PR, assuming my understanding of the issue and how Kodi interacts with artwork is at least in the general vicinity of being correct.
Apologies if I missed anything obvious or if I wasn't looking in the right places for the information I'm requesting, I'm new to Kodi forums, but any guidance, suggestions, or assistance would be greatly appreciated!
I use a MySql database for my Kodi metadata and a NAS to hold my media. It works great, and it's so easy for me to spin up a new client, drop in a copy of my advanced settings xml file, and bam, I can access my whole media library.
However, I am noticing that when I spin up a new client, I am finding that a significant amount of the movie posters are not present. This is not a deal-breaker of an issue, since I can still read the metadata bout the movies and watch my files. But it does significantly degrade the experience of having a media player like Kodi in a way that I would like to improve, if I can.
I believe I understand the cause of this problem. The poster art itself is not stored in the MySql database, it's stored in the cache for each individual client. The database just stores a URL to where the file was downloaded from. When I spin up a new client, it presumably uses that URL to fetch the file and store it locally. However, if the content provider has moved or changed the file since I originally scraped the data, the link is now a 404 and there's nothing for the new client to grab.
I posted about this in the kodi subreddit with a bit of additional information, and got some comments with proposed suggestions, but none that seemed to really be the answer that I'm looking for. I also saw quite a few other people posting that they had run into this issue and that they also were not aware of a satisfactory solution.
The only solution that I know of is to essentially rescrape each movie or show that has this problem, but that is a manual process for each affected piece of media, it doesn't do anything to prevent this issue coming up again in the future, and since it basically deletes and re-adds the media to the database, it removes any tags or watched status in the process.
My first question is - is there a better, officially-supported option for dealing with this problem? Either in terms of a way to run Kodi that makes it more feasible to share these images between clients, or a way to fix this issue that is more efficient and less disruptive, either currently built into Kodi or by using an add-on? I did some looking, but I will absolutely admit that this functionality may already exist and I was just unable to find it.
If something like this doesn't exist, has there been any discussion of improving this issue that other people are aware of? Either in this forum or in the feature requests section of the github repo? It seems to me like Kodi could be able to do a partial scrape of information to replace artwork without disrupted other aspects of the metadata, and it also could be able to flag pieces of artwork in the database when it tries to request them and gets a 404 response, indicating that artwork probably doesn't live at that URL anymore.
If nobody else has started doing this work, I've considered diving into it myself. I am pretty confident I could put together something either in a standalone script, Kodi add-on, or PR, assuming my understanding of the issue and how Kodi interacts with artwork is at least in the general vicinity of being correct.
Apologies if I missed anything obvious or if I wasn't looking in the right places for the information I'm requesting, I'm new to Kodi forums, but any guidance, suggestions, or assistance would be greatly appreciated!