tmcknight / Movie-and-TV-Show-Search-Alfred-Workflow

An Alfred workflow to search for a movie (or TV show) and get a few ratings
MIT License
94 stars 7 forks source link

Cannot look up tv show #24

Closed tim-hilde closed 2 years ago

tim-hilde commented 2 years ago

I always get an error when trying to look up a tv show:

Code 1: https://api.themoviedb.org/3/tv/1668?api_key=0ebad901a16d3bf7f947b0a8d1808c44&language=en&append_to_response=videos%2Cexternal_ids%2Cwatch%2Fproviders%2Creleases
TMDb info retrieved.
https://www.omdbapi.com/?i=tt0108778&tomatoes=True&apikey=1bf8d40a
OMDb info retrieved.
Traceback (most recent call last):
  File "media.py", line 401, in <module>
    sys.exit(main(args.t, args.q))
  File "media.py", line 55, in main
    show_item_info(item, media_type)
  File "media.py", line 148, in show_item_info
    "subtitle": get_subtitle(item, omdb_info),
  File "media.py", line 346, in get_subtitle
    for release in tmdb_info['releases']['countries']:
KeyError: 'releases'