diff options
author | luk3yx <luk3yx@users.noreply.github.com> | 2023-10-20 22:24:03 +1300 |
---|---|---|
committer | luk3yx <luk3yx@users.noreply.github.com> | 2023-10-20 22:24:03 +1300 |
commit | 06d875e9dfaa2433ef45ec45d6ed457b859db269 (patch) | |
tree | 1d89e3a433b4e41a547dab686b8aed677dcb9c5d | |
parent | a7c93da3aa2b365ffbab5c969e34e9f07d5391ec (diff) | |
download | lurklite-commands-06d875e9dfaa2433ef45ec45d6ed457b859db269.tar.gz lurklite-commands-06d875e9dfaa2433ef45ec45d6ed457b859db269.zip |
Fix comments
-rw-r--r-- | yt.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ import math, requests, random, time, traceback -# Default values so that the command at least does something if the API is down +# Default values so that the command still works if api.invidious.io is down cache_expiry = -math.inf instances = ['yewtu.be'] api_instances = ['i.psf.lt'] @@ -29,7 +29,7 @@ api_instances = ['i.psf.lt'] def fetch_instances(irc, args): global cache_expiry, instances, api_instances - # Refresh the cache at most once per week + # Refresh the cache at most once per day if time.monotonic() >= cache_expiry or not instances or not api_instances: try: resp = requests.get('https://api.invidious.io/instances.json') |