added the config option how long to wait after yt returns 404

This commit is contained in:
Hellow
2023-06-22 14:30:26 +02:00
parent d08abe42cb
commit 400b7d3d6e
4 changed files with 22 additions and 11 deletions

View File

@@ -100,6 +100,12 @@ class ConnectionSection(Section):
"Hidden instances (.onion) will only work, when setting 'tor=true'.",
value="https://pipedapi.kavin.rocks"
)
self.SLEEP_AFTER_YOUTUBE_403 = FloatAttribute(
name="sleep_after_youtube_403",
description="The time to wait, after youtube returned 403 (in seconds)",
value="20"
)
self.ALL_YOUTUBE_URLS = UrlListAttribute(
name="youtube_url",
@@ -126,6 +132,7 @@ class ConnectionSection(Section):
self.SHOW_DOWNLOAD_ERRORS_THRESHOLD,
self.INVIDIOUS_INSTANCE,
self.PIPED_INSTANCE,
self.SLEEP_AFTER_YOUTUBE_403,
self.ALL_YOUTUBE_URLS,
self.SPONSOR_BLOCK
]