ChandimaPrabath commited on
Commit
1642e05
·
1 Parent(s): 29ec663
Files changed (1) hide show
  1. app.py +1 -1
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' and episode_file['path'].endswith(f'{episode}'):
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