Jump to content

Addic7ed: handle daily request limit


neves000

Recommended Posts

neves000

Hi!

Is is possible to handle the daily request limit into the Addic7ed plugin? Something like If we have 10 consecutives timeouts when calling addic7ed.com, then the plugin stops to try to download subtitles for the entire collection, and an error is thrown?

Actually, every day my Emby tries to download subtitles, succeeds for a few at first (I guess? I hope it's not every day the same subtitles), then fails, and as it continues to attempt HTTP requests, the task takes a long time to complete (~1h30, with ~8500 useless requets to addic7ed.com, which timeout, and I have a 20mb logfile everyday).

2021-08-02 08:54:29.733 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:30.576 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:31.494 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:31.583 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:32.102 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:32.203 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:32.650 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:32.852 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:33.348 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:33.424 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:33.909 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:33.995 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:34.529 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:34.631 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:35.120 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:35.194 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:35.706 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:35.780 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:36.255 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:36.334 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:37.046 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:37.123 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:37.691 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 08:54:37.776 Info HttpClient: GET https://www.addic7ed.com/
2021-08-02 08:54:57.812 Error HttpClient: Connection to https://www.addic7ed.com/ timed out
2021-08-02 08:54:57.865 Error SubtitleManager: Error downloading subtitles from Addic7ed

[...]

2021-08-02 10:25:57.672 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc
2021-08-02 10:25:57.766 Error SubtitleManager: Error downloading subtitles from Addic7ed

Finally, I had to deactivate the Addic7ed task for now. 

Thank you!

Also, it may be interesting to write the requested subtitle into the logs.

  • Like 1
Link to comment
Share on other sites

neves000
2 hours ago, Luke said:

Hi, do you get any successful downloads from Addic7ed at the beginning of the day?

I think yes, but how can I be sure? According to the logs, every day I have ~10+ successful downloads from Addic7ed, and then all subsequent ones are in error.

Link to comment
Share on other sites

Happy2Play

With  daily limits I would think there needs to be limits applied.

Normal users are limited to 30 downloads per 24 hours.

Registered users are limited to 40 but VIPs get 80 downloads every 24 hours

 

Edited by Happy2Play
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...