mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2024-12-25 04:48:38 -06:00
Set DELAY_BETWEEN_EPISODES_IN_SECONDS to 1s
This commit is contained in:
parent
b4e39be46b
commit
f8a37b990b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue