summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorshironeko <shironeko@tesaguri.club>2024-02-08 18:58:23 -0500
committershironeko <shironeko@tesaguri.club>2024-02-08 18:58:23 -0500
commit98c421e9f539f8d72e6842fea94d17ff0db7f38a (patch)
tree965f7f30ef90202af14975b658281678a18dd206 /src
parentc864a63b6d86cb7552d2f1730731e427fc435fe4 (diff)
downloadinvidious-98c421e9f539f8d72e6842fea94d17ff0db7f38a.tar.gz
invidious-98c421e9f539f8d72e6842fea94d17ff0db7f38a.tar.bz2
invidious-98c421e9f539f8d72e6842fea94d17ff0db7f38a.zip
Fix when video from pubsub is a scheduled event
Diffstat (limited to 'src')
-rw-r--r--src/invidious/routes/feeds.cr6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/invidious/routes/feeds.cr b/src/invidious/routes/feeds.cr
index 512d4ee7..e20a7139 100644
--- a/src/invidious/routes/feeds.cr
+++ b/src/invidious/routes/feeds.cr
@@ -419,7 +419,11 @@ module Invidious::Routes::Feeds
published = Time.parse_rfc3339(entry.xpath_node("default:published", namespaces).not_nil!.content)
updated = Time.parse_rfc3339(entry.xpath_node("default:updated", namespaces).not_nil!.content)
- video = get_video(id, force_refresh: true)
+ begin
+ video = get_video(id, force_refresh: true)
+ rescue
+ next # skip this video since it raised an exception (e.g. it is a scheduled live event)
+ end
if CONFIG.enable_user_notifications
# Deliver notifications to `/api/v1/auth/notifications`