Beispiel #1
0
def index():
    if request.method == 'GET':
        return render_template('index.html')
    if request.method == 'POST':
        session_id = str(uuid.uuid4()).replace('-', '')
        YouGIF.download_movie(request.form['url'], session_id)
        return redirect(url_for('editor', session_id=session_id))