Spaces:
Paused
Paused
Commit
·
7234839
1
Parent(s):
375b3a9
fix
Browse files
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 =
|
73 |
if os.path.exists(cache_path):
|
74 |
return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))
|
75 |
|
@@ -96,7 +96,7 @@ def get_tv_show_api(title, season, episode):
|
|
96 |
cache_path = os.path.join(CACHE_DIR, episode_path)
|
97 |
file_url = f"https://huggingface.co/{REPO}/resolve/main/{episode_path}"
|
98 |
proxies = instance.get_system_proxies()
|
99 |
-
episode_id = instance.encode_episodeid(title,season,episode)
|
100 |
|
101 |
# Start the download in a separate thread if not already downloading
|
102 |
if episode_id not in instance.download_threads or not instance.download_threads[episode_id].is_alive():
|
|
|
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 |
|
|
|
96 |
cache_path = os.path.join(CACHE_DIR, episode_path)
|
97 |
file_url = f"https://huggingface.co/{REPO}/resolve/main/{episode_path}"
|
98 |
proxies = instance.get_system_proxies()
|
99 |
+
episode_id = instance.encode_episodeid(title, season, episode)
|
100 |
|
101 |
# Start the download in a separate thread if not already downloading
|
102 |
if episode_id not in instance.download_threads or not instance.download_threads[episode_id].is_alive():
|