Пример #1
0
def list():
	files = util.listFilesInDirectory(BASE_DIR);
	str = ''
	for f in files:
		str = str + f + '<br>'

	return str
Пример #2
0
def list():
    files = util.listFilesInDirectory(BASE_DIR)
    str = ''
    for f in files:
        str = str + f + '<br>'

    return str
Пример #3
0
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]))
Пример #4
0
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=' ')		
Пример #5
0
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=' ')
Пример #6
0
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]))
Пример #7
0
def viewPlayerNoArg():
	fileInfo = util.listFilesInDirectory(BASE_DIR);
	return render_template('player.html', fileData = zip( fileInfo[0], fileInfo[1], fileInfo[2], fileInfo[3]))
Пример #8
0
def viewPlayerNoArg():
    fileInfo = util.listFilesInDirectory(BASE_DIR)
    return render_template('player.html',
                           fileData=zip(fileInfo[0], fileInfo[1], fileInfo[2],
                                        fileInfo[3]))