Set DELAY_BETWEEN_EPISODES_IN_SECONDS to 1s

This commit is contained in:
Baptiste Roux 2022-02-19 14:26:30 +01:00
parent b4e39be46b
commit f8a37b990b
No known key found for this signature in database
GPG Key ID: F2D53AA58807C6B5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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")