yuyutsu07 commited on
Commit
4704f45
1 Parent(s): 0a4fd51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -33,8 +33,8 @@ def get_movie_details(imdb_id):
33
  return details
34
 
35
  # Function to get SuperEmbed URL
36
- def get_superembed_url(imdb_id, season=None, episode=None):
37
- base_url = "https://multiembed.mov/directstream.php"
38
  if season is None or episode is None:
39
  return f"{base_url}?video_id={imdb_id}"
40
  else:
@@ -135,7 +135,7 @@ def main():
135
  st.write("Note: Alternative link is not available for this type of content.")
136
 
137
  # SuperEmbed link
138
- st.write("SuperEmbed streaming option:")
139
  if is_webseries or details['kind'] == 'tv series':
140
  if details['episodes']:
141
  seasons = sorted(details['episodes'].keys())
@@ -146,7 +146,7 @@ def main():
146
  episode = st.selectbox("Episode (SuperEmbed)", options=episodes, key="superembed_episode")
147
 
148
  if episode:
149
- superembed_url = get_superembed_url(imdb_id, season, episode)
150
  st.markdown(f"[Watch {details['title']} S{season:02d}E{episode:02d} on SuperEmbed]({superembed_url})")
151
  else:
152
  st.write("Episode information is not available for this series.")
 
33
  return details
34
 
35
  # Function to get SuperEmbed URL
36
+ def get_vidsrcpro_url(imdb_id, season=None, episode=None):
37
+ base_url = "https://vidsrc.pro/embed/movie/"
38
  if season is None or episode is None:
39
  return f"{base_url}?video_id={imdb_id}"
40
  else:
 
135
  st.write("Note: Alternative link is not available for this type of content.")
136
 
137
  # SuperEmbed link
138
+ st.write("VidSrcPro streaming option:")
139
  if is_webseries or details['kind'] == 'tv series':
140
  if details['episodes']:
141
  seasons = sorted(details['episodes'].keys())
 
146
  episode = st.selectbox("Episode (SuperEmbed)", options=episodes, key="superembed_episode")
147
 
148
  if episode:
149
+ superembed_url = get_vidsrcpro_url(imdb_id, season, episode)
150
  st.markdown(f"[Watch {details['title']} S{season:02d}E{episode:02d} on SuperEmbed]({superembed_url})")
151
  else:
152
  st.write("Episode information is not available for this series.")