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
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
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
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