18 lines
503 B
Python
18 lines
503 B
Python
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import absolute_import, division, unicode_literals
|
||
|
|
||
|
from . import common
|
||
|
|
||
|
|
||
|
class KodiTextureDB(common.KodiDBBase):
|
||
|
db_kind = 'texture'
|
||
|
|
||
|
def url_not_yet_cached(self, url):
|
||
|
"""
|
||
|
Returns True if url has not yet been cached to the Kodi texture cache
|
||
|
"""
|
||
|
self.cursor.execute('SELECT url FROM texture WHERE url = ? LIMIT 1',
|
||
|
(url, ))
|
||
|
return self.cursor.fetchone() is None
|