gif support and increase max images
All checks were successful
Docker Image / build (push) Successful in 1m19s
All checks were successful
Docker Image / build (push) Successful in 1m19s
This commit is contained in:
@@ -26,7 +26,7 @@ USER_AGENT = os.getenv(
|
||||
)
|
||||
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
MAX_MESSAGE_LEN = 3900
|
||||
MAX_SCREENSHOTS_PER_APP = int(os.getenv("MAX_SCREENSHOTS_PER_APP", "3"))
|
||||
MAX_SCREENSHOTS_PER_APP = int(os.getenv("MAX_SCREENSHOTS_PER_APP", "10"))
|
||||
TELEGRAM_POLL_SECONDS = int(os.getenv("TELEGRAM_POLL_SECONDS", "10"))
|
||||
MEDIA_BASE_URL = os.getenv("MEDIA_BASE_URL", "https://media.sys.truenas.net")
|
||||
|
||||
@@ -265,7 +265,7 @@ def build_storj_screenshot_urls(session: requests.Session, app_id: str) -> List[
|
||||
return []
|
||||
|
||||
screenshot_urls: List[str] = []
|
||||
image_extensions = ["png", "jpg", "jpeg", "webp"]
|
||||
image_extensions = ["png", "jpg", "jpeg", "webp", "gif"]
|
||||
for index in range(1, MAX_SCREENSHOTS_PER_APP + 1):
|
||||
matched_for_index = False
|
||||
for extension in image_extensions:
|
||||
|
||||
Reference in New Issue
Block a user