Пример #1
0
Файл: tv.py Проект: WhileE/xbmc
def getShowTypes(col):
    common.waitforDB('tv')
    c = tvDB.cursor()
    items = c.execute('select distinct %s from shows' % col)
    l = common.getTypes(items, col)
    c.close()
    return l
Пример #2
0
def getMovieTypes(col):
    common.waitforDB('movie')
    c = MovieDB.cursor()
    items = c.execute('select distinct %s from movies' % col)
    types = common.getTypes(items, col)
    c.close()
    return types
Пример #3
0
def getShowTypes(col):
    common.waitforDB('tv')
    c = tvDB.cursor()
    items = c.execute('select distinct %s from shows' % col)
    types = common.getTypes(items, col)
    c.close()
    return types
Пример #4
0
def getMovieTypes(col):
    common.waitforDB('movie')
    c = MovieDB.cursor()
    items = c.execute('select distinct %s from movies' % col)
    list = common.getTypes(items, col)
    c.close()
    return list