Force refresh fanart

The only thing cached into texture13.db I believe fanart was the last
thing that wasn't changing when modified in Emby.
This commit is contained in:
angelblue05 2015-06-19 05:53:22 -05:00
parent ae07e1b4c6
commit 142908d56d
3 changed files with 18 additions and 1 deletions

View file

@ -73,6 +73,18 @@ class TextureCache():
except:
#extreme short timeouts so we will have a exception, but we don't need the result so pass
pass
def refreshFanart(self,url):
connection = utils.KodiSQL("texture")
cursor = connection.cursor()
cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,))
result = cursor.fetchone()
if result:
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
connection.commit()
else:
self.CacheTexture(url)
cursor.close()
def setKodiWebServerDetails(self):