Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'movie' in trakt_trending #133

Closed
vaparr opened this issue Mar 20, 2021 · 3 comments · Fixed by #138
Closed

KeyError: 'movie' in trakt_trending #133

vaparr opened this issue Mar 20, 2021 · 3 comments · Fixed by #138
Assignees
Labels
bug Bug is with Plex Meta Manager

Comments

@vaparr
Copy link

vaparr commented Mar 20, 2021

Running the latest develop.. this used to work:

Trending:
    sort_title: "*110"
    **trakt_trending: 20**
    tmdb_trending_weekly: 50
    sync_mode: sync
    trakt_list:
      - https://trakt.tv/users/giladg/lists/top-10-movies-of-the-week?sort=added,asc
    filters:
      original_language: en

|====================================================================================================|
| Trending Collection |
|====================================================================================================|
| |
| Scanning Trending Collection |
| |
| Method: sort_title |
| Value: *110 |
| |
| Method: trakt_trending |
| Value: 20 |
| |
| Method: tmdb_trending_weekly |
| Value: 50 |
| |
| Method: sync_mode |
| Value: sync |
| |
| Method: trakt_list |
| Value: ['https://trakt.tv/users/giladg/lists/top-10-movies-of-the-week?sort=added,asc'] |
| |
| Method: filters |
| Value: ordereddict([('original_language', 'en')]) |
| |
| Sync Mode: sync |
| |
| Collection Filter original_language: ['en'] |
| |
| Method: trakt_trending |
| Values: [20] |
| |
| Value: 20 |
| Data: 20 |
| Traceback (most recent call last): |
| File "/modules/config.py", line 462, in update_libraries |
| builder.run_methods(collection_obj, collection_name, rating_key_map, movie_map, show_map) |
| File "/modules/builder.py", line 765, in run_methods |
| elif "trakt" in method: items_found += check_map(self.config.Trakt.get_items(method, value, self.library.is_movie)) |
| File "/modules/trakttv.py", line 151, in get_items |
| movie_ids, show_ids = self.get_pagenation(method[6:], data, is_movie) |
| File "/modules/trakttv.py", line 118, in get_pagenation |
| elif is_movie: return [item["movie"]["ids"]["tmdb"] for item in items], [] |
| File "/modules/trakttv.py", line 118, in |
| elif is_movie: return [item["movie"]["ids"]["tmdb"] for item in items], [] |
| KeyError: 'movie' |
| |
| Unknown Error: 'movie'

meisnate12 added a commit that referenced this issue Mar 20, 2021
@meisnate12
Copy link
Member

ok fix should be in develop

@meisnate12 meisnate12 added the bug Bug is with Plex Meta Manager label Mar 20, 2021
@meisnate12 meisnate12 self-assigned this Mar 20, 2021
@vaparr
Copy link
Author

vaparr commented Mar 20, 2021

looks good, thanks

@vaparr vaparr closed this as completed Mar 20, 2021
@meisnate12
Copy link
Member

leaving open until pushed to master

@meisnate12 meisnate12 reopened this Mar 21, 2021
@meisnate12 meisnate12 mentioned this issue Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants