slimshadow commited on
Commit
1181585
·
verified ·
1 Parent(s): 8bad137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -54,7 +54,14 @@ if st.button("Search"):
54
  year = result.get('year', 'N/A')
55
  imdb_id = result.movieID
56
 
 
 
 
 
 
57
  st.write(f"{idx + 1}. {title} ({year})")
 
 
58
 
59
  # Generate embed URL based on search type
60
  if search_type == "Movie":
@@ -63,7 +70,7 @@ if st.button("Search"):
63
  embed_url = get_tv_embed(imdb_id, ds_lang=ds_lang, sub_url=sub_url)
64
 
65
  # Display the embed URL
66
- st.write("Embed URL:")
67
  st.write(embed_url)
68
  st.write("---")
69
  else:
 
54
  year = result.get('year', 'N/A')
55
  imdb_id = result.movieID
56
 
57
+ # Fetch poster URL
58
+ ia.update(result, info=['main'])
59
+ poster_url = result.get('full-size cover url', None)
60
+
61
+ # Display poster, title, and year
62
  st.write(f"{idx + 1}. {title} ({year})")
63
+ if poster_url:
64
+ st.image(poster_url, width=150)
65
 
66
  # Generate embed URL based on search type
67
  if search_type == "Movie":
 
70
  embed_url = get_tv_embed(imdb_id, ds_lang=ds_lang, sub_url=sub_url)
71
 
72
  # Display the embed URL
73
+ st.write("URL:")
74
  st.write(embed_url)
75
  st.write("---")
76
  else: