ChandimaPrabath commited on
Commit
089ef31
·
1 Parent(s): 1049655
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,9 +69,9 @@ def get_tv_show_api(title, season, episode):
69
  if title in tv_store_data and season in tv_store_data[title]:
70
  print(f"found title :{title}")
71
  for ep in tv_store_data[title][season]:
72
- print(f"found :{title} {season} {episode}")
73
  if episode in ep:
74
- cache_path = os.path.join(CACHE_DIR, ep)
 
75
  if os.path.exists(cache_path):
76
  return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))
77
 
 
69
  if title in tv_store_data and season in tv_store_data[title]:
70
  print(f"found title :{title}")
71
  for ep in tv_store_data[title][season]:
 
72
  if episode in ep:
73
+ print(f"found :{title} {season} {episode}")
74
+ cache_path = tv_store_data[title][season][ep]
75
  if os.path.exists(cache_path):
76
  return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))
77