aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluk3yx <luk3yx@users.noreply.github.com>2023-10-20 22:24:03 +1300
committerluk3yx <luk3yx@users.noreply.github.com>2023-10-20 22:24:03 +1300
commit06d875e9dfaa2433ef45ec45d6ed457b859db269 (patch)
tree1d89e3a433b4e41a547dab686b8aed677dcb9c5d
parenta7c93da3aa2b365ffbab5c969e34e9f07d5391ec (diff)
downloadlurklite-commands-06d875e9dfaa2433ef45ec45d6ed457b859db269.tar.gz
lurklite-commands-06d875e9dfaa2433ef45ec45d6ed457b859db269.zip
Fix comments
-rw-r--r--yt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt.py b/yt.py
index eb2e8c6..d819e9c 100644
--- a/yt.py
+++ b/yt.py
@@ -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')