コード例 #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)
コード例 #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)
コード例 #3
0
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())
コード例 #4
0
def list_movies():
    lister = MovieLister(app.config['TORRENTROOT'], app.config['EXTENSIONS'])
    return render_template("movies.html", movies=lister.list())