def watch_movie(movie):
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    m = lister.get(movie)
    if m:
        return render_template('player.html', movie=m)
    else:
        return abort(404)
Exemple #2
0
def watch_movie(movie):
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    m = lister.get(movie)
    if m:
        return render_template('player.html', movie=m)
    else:
        return abort(404)
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())
Exemple #4
0
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())