ChandimaPrabath commited on
Commit
613081c
·
1 Parent(s): 1642e05
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -220,7 +220,7 @@ def get_tv_show_api():
220
  for sub_directory in directory['contents']:
221
  if sub_directory['type'] == 'directory' and title.lower() in sub_directory['path'].lower():
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']
 
220
  for sub_directory in directory['contents']:
221
  if sub_directory['type'] == 'directory' and title.lower() in sub_directory['path'].lower():
222
  for season_dir in sub_directory['contents']:
223
+ if season_dir['type'] == 'directory':
224
  for episode_file in season_dir['contents']:
225
  if episode_file['type'] == 'file':
226
  episode_path = episode_file['path']