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

2.4.2 Fixes for #87 and #89 #90

Merged
merged 4 commits into from
Nov 5, 2020
Merged

2.4.2 Fixes for #87 and #89 #90

merged 4 commits into from
Nov 5, 2020

Conversation

meisnate12
Copy link

[2.4.2] - 2020-11-04

Fixed

@@ -38,10 +38,10 @@ def imdb_get_movies(config_path, plex, data):
"//a/img//@data-tconst")
if "/search/" in imdb_url:
results = re.search('<span>\\d+-\\d+ of \\d+ titles.</span>', str(r.content))
total = 100 if results is None else re.findall('(\\d+)', results.group(0))[2]
total = 100 if results is None else re.findall('(\\d+)', results.group(0).replace(',', ''))[2]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, should we just set the size as a parameter and add it to the URL on the user's behalf?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i mean this solution should work and then if the list changes its total the user would have to constantly update the total

@mza921 mza921 merged commit adffea9 into mza921:master Nov 5, 2020
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

Successfully merging this pull request may close these issues.

Crashing on specific TV Series Bug: Only add 100 first result of an IMDB list
2 participants