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

Fix podnapisi.net not returning results #2790

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

saddfox
Copy link
Contributor

@saddfox saddfox commented Dec 11, 2024

Fixes the following issue which always triggered no results condition.

/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/podnapisi.py:212: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
  if (not xml.find('pagination/results') or not xml.find('pagination/results').text or not

This would result in bazarr iterating over all alternative titles and eventually triggering
WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Read timed out. (read timeout=30), retrying in 5 seconds...

The above still happens because podnapisi.net is utterly broken, but now it at least sometimes returns results.

@morpheus65535 morpheus65535 merged commit 4df822d into morpheus65535:development Dec 12, 2024
2 checks passed
@morpheus65535
Copy link
Owner

Thanks!

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.

2 participants