Skip to content

Commit

Permalink
fix: fcm, pushalert url
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO committed Apr 6, 2021
1 parent 69de72d commit 0de93ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/fcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def onlive(video_data):
"notification": {
'title': text.FCM_TITLE.format(**video_data["metadata"]),
"body": text.FCM_MESSAGE.format(**video_data["metadata"]),
"click_action": f"https://youtu.be/{video_data['metadata']['id']}",
"click_action": f"https://www.youtube.com/watch?v={video_data['metadata']['id']}",
"image": image
}
}
Expand Down
2 changes: 1 addition & 1 deletion addons/pushalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def onlive(video_data):
data = {
'title': text.PUSHALERT_TITLE.format(**video_data["metadata"]),
"message": text.PUSHALERT_MESSAGE.format(**video_data["metadata"]),
"url": f"https://youtu.be/{video_data['metadata']['id']}"
"url": f"https://www.youtube.com/watch?v={video_data['metadata']['id']}"
}
if const.PUSHALERT_ICON:
data["icon"] = const.PUSHALERT_ICON
Expand Down

0 comments on commit 0de93ab

Please sign in to comment.