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

Realdebridcomtorrent - Add retry logic, improved error handling #4404

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jonybat
Copy link

@Jonybat Jonybat commented Dec 3, 2023

Describe the changes

RD is not very reliable. I've seen it reply the following to the API requests:

  • (16, '')
  • <br />- <b>Fatal error</b>: 'break' not in the 'loop' or 'switch' context in <b>/home/real-debrid/www/includes/core.php</b> on line <b>8046</b><br />

The decrypter currently does not handle those kinds of errors, and it just gives up. This should help (at least it has been working fine for me)

Is this related to a problem?

Related to #4040

Additional references

I am not a dev, but i tried to be as consistent as possible. This is mostly based on what was done in #4042
Feel free to clean it up or suggest (easy) changes

@pep8speaks
Copy link

pep8speaks commented Dec 3, 2023

Hello @Jonybat! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 43:89: E501 line too long (95 > 88 characters)

We recommend to use black to automatically correct these files.

Comment last updated at 2023-12-03 14:55:35 UTC

@CLAassistant
Copy link

CLAassistant commented Dec 3, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

3 participants