def entryids(): form = SupaPlayaMaka() x = session.get('x', None) if x == 0: files = request.form.getlist('videofile') newfiles = [] for f in files: newf = os.path.splitext(f)[0] newfiles.append(newf) session['file_var'] = newfiles return render_template('entryids.html', form=form, newfiles=newfiles) else: files = request.form.getlist('filename') newfiles = [] for f in files: newfiles.append(f) session['file_var'] = newfiles return render_template('entryids.html', form=form, newfiles=newfiles)
def playeropts1(): form = SupaPlayaMaka() return render_template('playeropts1.html', form=form)
def selectfiles(): form = SupaPlayaMaka() playa_option = request.form['playerchoice'] session['player_option'] = playa_option session['x'] = 0 return render_template('selectfiles.html', form=form)
def howmany_AD(): form = SupaPlayaMaka() return render_template('howmany_AD.html', form=form)
def captions1(): form = SupaPlayaMaka() if request.method == 'POST': return redirect(url_for('captions2')) elif request.method == 'GET': return render_template('captions1.html', form=form)
def selectfiles(): form = SupaPlayaMaka() download_option = request.form['downloadopts'] session['download_option'] = download_option session['x'] = 0 return render_template('selectfiles.html', form=form)