Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
firofame authored Aug 16, 2024
1 parent c9c07c7 commit 540fa7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def extract_movie_details(html_content):
if 'Wiki' in link.text:
extras['imdb'] = link['href']
elif 'Trailer' in link.text:
extras['trailer'] = link['href']
if 'href' in link.attrs:
extras['trailer'] = link['href']
movie['extras'] = extras

movies.append(movie)
Expand Down

0 comments on commit 540fa7c

Please sign in to comment.