Skip to content

Commit

Permalink
fix: allow sponsor message to include html
Browse files Browse the repository at this point in the history
  • Loading branch information
davidemarcoli committed Feb 1, 2025
1 parent 1c1f945 commit 77dca56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
root_path = "/" + root_path
app = FastAPI(root_path=root_path)

VERSION = "4.2.3"
VERSION = "4.2.4"
isDev = os.getenv("NODE_ENV") == "development"
COMMUNITY_VERSION = True if os.getenv("IS_COMMUNITY_VERSION") == "true" else False
SPONSOR_MESSAGE = os.getenv("SPONSOR_MESSAGE")
Expand Down Expand Up @@ -82,7 +82,7 @@ async def root():
async def configure(request: Request):
return templates.TemplateResponse(
"index.html",
{"request": request, "isCommunityVersion": COMMUNITY_VERSION, "sponsorMessage": SPONSOR_MESSAGE}
{"request": request, "isCommunityVersion": COMMUNITY_VERSION, "sponsorMessage": SPONSOR_MESSAGE, "version": VERSION}
)


Expand Down
4 changes: 2 additions & 2 deletions source/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
alt="logo" style="width: 100px; height: 100px;">
<div class="space-y-12">
<p class="dark:text-white text-center">Stremio-Jackett{% if isCommunityVersion %} Community{% endif %}
v4.2.3</p>
<p class="dark:text-white text-center">{% if sponsorMessage %}{{ sponsorMessage }}{% endif %}</p>
v{{ version }}</p>
<p class="dark:text-white text-center">{% if sponsorMessage %}{{ sponsorMessage | safe }}{% endif %}</p>
<h1 class="text-base font-semibold leading-7 text-gray-900 dark:text-white"
style="text-align: center;font-size: 2rem;">
Addon configuration</h1>
Expand Down

0 comments on commit 77dca56

Please sign in to comment.