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

Bug: certain IMDb searches fail #58

Closed
burkasaurusrex opened this issue Oct 25, 2020 · 3 comments
Closed

Bug: certain IMDb searches fail #58

burkasaurusrex opened this issue Oct 25, 2020 · 3 comments

Comments

@burkasaurusrex
Copy link

Looking into this now:

| Processing imdb_list: https://www.imdb.com/search/title/?groups=best_picture_winner&sort=year,desc&count=250
Traceback (most recent call last):
File "plex_auto_collections.py", line 502, in
update_from_config(config_path, plex, True, args.no_meta, args.no_images)
File "plex_auto_collections.py", line 77, in update_from_config
try: missing, map = add_to_collection(config_path, plex, m, v, c, map, subfilters)
File "/app/plex_tools.py", line 135, in add_to_collection
if method == "imdb_list": movies, missing = imdb_tools.imdb_get_movies(config_path, plex, value)
File "/app/imdb_tools.py", line 39, in imdb_get_movies
total = re.findall('(\\d+)', results.group(0))[2]
AttributeError: 'NoneType' object has no attribute 'group'
@burkasaurusrex
Copy link
Author

Should also add that the script stopped with this error instead of continuing on

@meisnate12
Copy link

I don't have it catching bugs that shouldn't be happening. This needs a check for when it's only one page should be an easy fix

@mza921
Copy link
Owner

mza921 commented Oct 26, 2020

We could probably use the Beautiful Soup library for the HTML parsing.

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

3 participants