Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())
Ejemplo n.º 4
0
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())