update sleep time to fix timeout bug

This commit is contained in:
mxr612 2024-08-27 15:29:16 +08:00
parent 3f6c5547cb
commit fa9f7dfa73

4
rss.py
View File

@ -14,7 +14,7 @@ def load_content():
return tmp return tmp
except Exception as e: except Exception as e:
print(f"Error downloading: {e}") print(f"Error downloading: {e}")
time.sleep(10) time.sleep(1)
return None return None
def update(ids): def update(ids):
@ -24,6 +24,6 @@ def update(ids):
return True return True
except Exception as e: except Exception as e:
print(f"Error updating: {e}") print(f"Error updating: {e}")
time.sleep(60) time.sleep(1)
return False return False