Skip to content

Commit

Permalink
Update notifications.py
Browse files Browse the repository at this point in the history
Changed maskedlistenurl to friendlyurl
  • Loading branch information
OliNau authored Jun 9, 2024
1 parent 3fb1a7d commit cbd069f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def render_template(template, reason=""):
.replace("$confidencepct", confidencepct) \
.replace("$confidence", confidence) \
.replace("$listenurl", listenurl) \
.replace("$maskedlistenurl", maskedlistenurl) \
.replace("$friendlyurl", friendlyurl) \
.replace("$date", date) \
.replace("$time", time) \
.replace("$week", week) \
Expand Down Expand Up @@ -98,7 +98,7 @@ def render_template(template, reason=""):
websiteurl = "http://"+socket.gethostname()+".local"

listenurl = websiteurl+"?filename="+path
maskedlistenurl = "[Listen here]("+listenurl+")"
friendlyurl = "[Listen here]("+listenurl+")"
image_url = ""

if len(settings_dict.get('FLICKR_API_KEY')) > 0 and "$flickrimage" in body:
Expand Down

0 comments on commit cbd069f

Please sign in to comment.