예제 #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
파일: movies.py 프로젝트: Versatilus/xbmc
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