Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. audio_tracks = []
  2. audio_filtered = [filter(lambda x: x['channels'] <= 6, audio_representations)]
  3. if config_dict['audio_langs']:
  4. for req_audio_lang in config_dict['audio_langs']:
  5. for sorted_audio in audio_filtered:
  6. if req_audio_lang == sorted_audio['lang_code'] :
  7. audio_tracks.append(sorted_audio)
  8. break
  9.  
  10.  
  11. if req_audio_lang == sorted_audio['lang_code'] :
  12. TypeError: 'filter' object is not subscriptable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement