ChandimaPrabath commited on
Commit
8e6a91a
·
1 Parent(s): 7234839
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,7 +69,7 @@ def get_tv_show_api(title, season, episode):
69
  if title in tv_store_data and season in tv_store_data[title]:
70
  for ep in tv_store_data[title][season]:
71
  if episode in ep:
72
- cache_path = os.path.join(CACHE_DIR, title, season, ep)
73
  if os.path.exists(cache_path):
74
  return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))
75
 
@@ -106,7 +106,6 @@ def get_tv_show_api(title, season, episode):
106
 
107
  return jsonify({"status": "Download started", "episode_id": episode_id})
108
 
109
-
110
  @app.route('/api/progress/<id>', methods=['GET'])
111
  def get_progress_api(id):
112
  """Endpoint to get the download progress of a movie or TV show episode."""
 
69
  if title in tv_store_data and season in tv_store_data[title]:
70
  for ep in tv_store_data[title][season]:
71
  if episode in ep:
72
+ cache_path = os.path.join(CACHE_DIR, ep)
73
  if os.path.exists(cache_path):
74
  return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))
75
 
 
106
 
107
  return jsonify({"status": "Download started", "episode_id": episode_id})
108
 
 
109
  @app.route('/api/progress/<id>', methods=['GET'])
110
  def get_progress_api(id):
111
  """Endpoint to get the download progress of a movie or TV show episode."""