From 778463fe6c49974fa37d17d61f4e23e8a35fffcc Mon Sep 17 00:00:00 2001 From: junah201 Date: Fri, 12 Jan 2024 15:54:54 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=EC=B1=84=EB=84=90=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=EA=B0=80=20=EC=97=86=EC=9D=84=20=EB=95=8C=20?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=20=EB=93=B1=EB=A1=9D=EC=9D=B4=20=EC=95=88?= =?UTF-8?q?=EB=90=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lambdas/event_handler/events/add_notification.py | 2 +- lambdas/live_check/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lambdas/event_handler/events/add_notification.py b/lambdas/event_handler/events/add_notification.py index 26521f8..b210af1 100644 --- a/lambdas/event_handler/events/add_notification.py +++ b/lambdas/event_handler/events/add_notification.py @@ -104,7 +104,7 @@ def handler(event, context): 'lastLiveTitle': {'S': chzzk.liveTitle}, 'channelId': {'S': chzzk.channel.channelId}, 'channelName': {'S': chzzk.channel.channelName}, - 'channelImageUrl': {'S': chzzk.channel.channelImageUrl}, + 'channelImageUrl': {'S': chzzk.channel.channelImageUrl or ""}, "type": {"S": "CHZZK"} } ) diff --git a/lambdas/live_check/main.py b/lambdas/live_check/main.py index 03e8f12..03d97bc 100644 --- a/lambdas/live_check/main.py +++ b/lambdas/live_check/main.py @@ -100,7 +100,7 @@ def middleware(event, context): } ], "image": { - "url": (chzzk.liveImageUrl or chzzk.channel.channelImageUrl).replace("_{type}", "_1080"), + "url": (chzzk.liveImageUrl or chzzk.channel.channelImageUrl or "").replace("_{type}", "_1080"), }, "author": { "name": f"{chzzk.channel.channelName}",