コード例 #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
ファイル: tv.py プロジェクト: mannes/plugin.video.amazon65
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