Spaces:
Paused
Paused
Commit
·
1642e05
1
Parent(s):
29ec663
fix api
Browse files
app.py
CHANGED
@@ -222,7 +222,7 @@ def get_tv_show_api():
|
|
222 |
for season_dir in sub_directory['contents']:
|
223 |
if season_dir['type'] == 'directory' and season_dir['path'].endswith(f'Season {season}'):
|
224 |
for episode_file in season_dir['contents']:
|
225 |
-
if episode_file['type'] == 'file'
|
226 |
episode_path = episode_file['path']
|
227 |
break
|
228 |
|
|
|
222 |
for season_dir in sub_directory['contents']:
|
223 |
if season_dir['type'] == 'directory' and season_dir['path'].endswith(f'Season {season}'):
|
224 |
for episode_file in season_dir['contents']:
|
225 |
+
if episode_file['type'] == 'file':
|
226 |
episode_path = episode_file['path']
|
227 |
break
|
228 |
|