fix: apply CodeRabbit auto-fixes

Fixed 3 file(s) based on 3 unresolved review comments.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
This commit is contained in:
coderabbitai[bot]
2026-03-11 17:39:10 +00:00
committed by GitHub
parent f6ab7fdb07
commit 10a80cb395
3 changed files with 39 additions and 54 deletions

View File

@@ -365,11 +365,14 @@ class AeonViewHelpers:
logging.error(AeonViewMessages.INVALID_IMAGE_EXTENSION)
return None
if url.endswith(".png"):
url_lower = url.lower()
if url_lower.endswith(".jpeg"):
return ".jpeg"
if url_lower.endswith(".png"):
return ".png"
if url.endswith(".gif"):
if url_lower.endswith(".gif"):
return ".gif"
if url.endswith(".webp"):
if url_lower.endswith(".webp"):
return ".webp"
return ".jpg"
@@ -397,6 +400,7 @@ class AeonViewHelpers:
"""
return [
"ffmpeg",
"-y",
"-framerate",
str(fps),
"-pattern_type",
@@ -531,4 +535,4 @@ if __name__ == "__main__":
app = AeonViewApp()
app.run()
# vim: set tw=100 fo=cqt wm=0 et:
# vim: set tw=100 fo=cqt wm=0 et: