diff --git a/README.md b/README.md index 3bd20d3..17efa16 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ They'll be a few! This was quickly put together within a few hours or so for per # Notes 1. The script is using limited data provided from a GDPR request - so the accuracy isn't 100%. But you will be prompted to manually pick the Trakt show, when it can't be determined automatically. -2. A delay of 5 seconds is added between each episode to ensure fair use of Trakt's API server. You should adjust this for your own import, but make sure it's at least 1 second to remain within the rate limit. +2. A delay of 1 second is added between each episode to ensure fair use of Trakt's API server. You can adjust this for your own import, but make sure it's at least 0.75 second to remain within the rate limit: https://trakt.docs.apiary.io/#introduction/rate-limiting 3. Episodes which have been processed will be saved to a TinyDB file `localStorage.json` - when you restart the script, the program will skip those episodes which have been marked 'imported'. # Setup diff --git a/TimeToTrackt.py b/TimeToTrackt.py index 01a65d6..f8c7cfb 100644 --- a/TimeToTrackt.py +++ b/TimeToTrackt.py @@ -23,7 +23,7 @@ logging.basicConfig( # Adjust this value to increase/decrease your requests between episodes. # Make to remain within the rate limit: https://trakt.docs.apiary.io/#introduction/rate-limiting -DELAY_BETWEEN_EPISODES_IN_SECONDS = 0.75 +DELAY_BETWEEN_EPISODES_IN_SECONDS = 1 # Create a database to keep track of completed processes database = TinyDB("localStorage.json")