From b9c750101258fce1cf1bc0819bd857a8d61faa84 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 7 Mar 2019 21:49:52 -0600 Subject: [PATCH] Fix typo in pubsub update --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 26f98b2c..e0e124b8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2361,7 +2361,7 @@ post "/feed/webhook/:token" do |env| rss = XML.parse_html(body) rss.xpath_nodes("//feed/entry").each do |entry| id = entry.xpath_node("videoid").not_nil!.content - published = Time.parse_rfc3339(entry.xpath_node("updated").not_nil!.content) + published = Time.parse_rfc3339(entry.xpath_node("published").not_nil!.content) updated = Time.parse_rfc3339(entry.xpath_node("updated").not_nil!.content) video = get_video(id, PG_DB, proxies, region: nil)