Git Product home page Git Product logo

Comments (4)

magnu5 avatar magnu5 commented on May 12, 2024

Alldebrid seems to have a limit of 12 per second:
Current limits are at 12 requests per second and 600 requests per minute. Any request in excess of those limits will return a 429 or 503 errors.
https://docs.alldebrid.com/#rate-limiting

from plex_debrid.

itsToggle avatar itsToggle commented on May 12, 2024

That's generally a good idea. Though Plex does not seem to need any rate limiting, and I've not encountered any rate limit on realdebrid. There is a connection limit, which i believe is 16 parallel connections, but the requests to realdebrid are usually done fairly quickly and the connection should automatically close afterwards. I'll look into this though, perhaps i forgot to close the connection somewhere. thanks for reporting.
Media items are downloaded sequentially. Multiprocessing is only used when downloading a show, whose seasons/episodes couldn't be found by scraping for the shows name once.
It will be tricky to implement a rate limiter that works with multiprocessing since the threads can't talk to each other.. I'll try to get this done asap but i might need a bit of time.

from plex_debrid.

itsToggle avatar itsToggle commented on May 12, 2024

added rate limit for alldebrid link unrestriction in latest release, but will implement a general rate limit handler in the future.

from plex_debrid.

itsToggle avatar itsToggle commented on May 12, 2024

I will shelve this enhancement for now, as no other issues have been reported since.
And to be honest, I have no idea how I would implement a threaded rate limiter.

from plex_debrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.