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

Python Error - KeyError: 'weighted_sorting' #72

Open
CasperNielsen opened this issue Jan 31, 2020 · 0 comments
Open

Python Error - KeyError: 'weighted_sorting' #72

CasperNielsen opened this issue Jan 31, 2020 · 0 comments

Comments

@CasperNielsen
Copy link

Getting this error, have installed all requirements, same error when using python3.

user@test:/opt/plex_dynamic_library$ sudo python plexlibrary movies_trending
Running the recipe 'movies_trending'
Retrieving the trakt list: https://api.trakt.tv/movies/trending?limit=2
Retrieving the trakt list: https://api.trakt.tv/movies/watched/weekly?limit=100
Retrieving the trakt list: https://api.trakt.tv/movies/trending?limit=50
Retrieving the trakt list: https://api.trakt.tv/movies/watched/monthly?limit=150
Retrieving the trakt list: https://api.trakt.tv/movies/watched/yearly?limit=500
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/plex_dynamic_library/plexlibrary/main.py", line 3, in
main()
File "plexlibrary/plexlibrary.py", line 61, in main
r.run(args.sort_only)
File "plexlibrary/recipe.py", line 696, in run
missing_items, list_count = self._run()
File "plexlibrary/recipe.py", line 91, in _run
if self.recipe['weighted_sorting']['enabled']:
File "plexlibrary/utils.py", line 30, in getitem
return self.data[k]
File "/usr/local/lib/python2.7/dist-packages/ruamel/yaml/comments.py", line 753, in getitem
return ordereddict.getitem(self, key)
KeyError: 'weighted_sorting'
user@test:/opt/plex_dynamic_library$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant