def list(): files = util.listFilesInDirectory(BASE_DIR); str = '' for f in files: str = str + f + '<br>' return str
def list(): files = util.listFilesInDirectory(BASE_DIR) str = '' for f in files: str = str + f + '<br>' return str
def viewLibrary(): # for f in fileInfo[0]: # PL.getPosterForName(f) fileInfo = util.listFilesInDirectory(BASE_DIR) return render_template('library.html', fileData=zip(fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]))
def viewPlayer(filename): fileInfo = util.listFilesInDirectory(BASE_DIR); try: idx = fileInfo[0].index(filename) except ValueError: idx = -1; if not idx == -1: return render_template('player.html', fileData = zip( fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]), videoPath=fileInfo[1][idx]) else: return render_template('player.html', fileData = zip( fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]), videoPath=' ')
def viewPlayer(filename): fileInfo = util.listFilesInDirectory(BASE_DIR) try: idx = fileInfo[0].index(filename) except ValueError: idx = -1 if not idx == -1: return render_template('player.html', fileData=zip(fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]), videoPath=fileInfo[1][idx]) else: return render_template('player.html', fileData=zip(fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]), videoPath=' ')
def viewLibrary(): # for f in fileInfo[0]: # PL.getPosterForName(f) fileInfo = util.listFilesInDirectory(BASE_DIR); return render_template('library.html', fileData = zip( fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]))
def viewPlayerNoArg(): fileInfo = util.listFilesInDirectory(BASE_DIR); return render_template('player.html', fileData = zip( fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]))
def viewPlayerNoArg(): fileInfo = util.listFilesInDirectory(BASE_DIR) return render_template('player.html', fileData=zip(fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]))