AnthonyBloomer / tmdbv3api

A lightweight Python library for The Movie Database (TMDb) API. The TMDb API is a resource for developers to integrate movie, TV show and cast data along with posters or movie fan art.
http://anthonybloomer.github.io/tmdbv3api/.
220 stars 51 forks source link

Strange error when i want to get the title of a movie #97

Closed Impre-visible closed 2 years ago

Impre-visible commented 2 years ago

Hi, I wanted to get all the title of my movies so i do that :

@app.route('/')
@app.route('/index')
@app.route('/home')
def home():
    vu = "\\\\Freebox_Server\\disque dur\\Vidéos\\Vu"
    films = os.listdir(vu)
    print(films)

    for film in films:  
        titre = film.title
        print(titre)

    return render_template('index.html', files=films)

but i have this message : image

Impre-visible commented 2 years ago

i writed title() and it worked