summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-05-08 13:10:18 +0200
committerSamantaz Fox <coding@samantaz.fr>2023-05-08 13:10:18 +0200
commitc385a944e642ce9e060c2dcf2082ecf0bb10b45a (patch)
treecd737759d2bf42866e3d162121072ed3af4fd2e6 /src
parentce1fb8d08c86f747ee638289c8bcfeb208702445 (diff)
downloadinvidious-c385a944e642ce9e060c2dcf2082ecf0bb10b45a.tar.gz
invidious-c385a944e642ce9e060c2dcf2082ecf0bb10b45a.tar.bz2
invidious-c385a944e642ce9e060c2dcf2082ecf0bb10b45a.zip
Subscriptions: Fix casing of XML tag names
Diffstat (limited to 'src')
-rw-r--r--src/invidious/channels/channels.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/channels/channels.cr b/src/invidious/channels/channels.cr
index b09d93b1..c3d6124f 100644
--- a/src/invidious/channels/channels.cr
+++ b/src/invidious/channels/channels.cr
@@ -199,7 +199,7 @@ def fetch_channel(ucid, pull_all_videos : Bool)
LOGGER.trace("fetch_channel: #{ucid} : Extracting videos from channel RSS feed")
rss.xpath_nodes("//default:feed/default:entry", namespaces).each do |entry|
- video_id = entry.xpath_node("yt:videoid", namespaces).not_nil!.content
+ video_id = entry.xpath_node("yt:videoId", namespaces).not_nil!.content
title = entry.xpath_node("default:title", namespaces).not_nil!.content
published = Time.parse_rfc3339(
@@ -210,7 +210,7 @@ def fetch_channel(ucid, pull_all_videos : Bool)
)
author = entry.xpath_node("default:author/default:name", namespaces).not_nil!.content
- ucid = entry.xpath_node("yt:channelid", namespaces).not_nil!.content
+ ucid = entry.xpath_node("yt:channelId", namespaces).not_nil!.content
views = entry
.xpath_node("media:group/media:community/media:statistics", namespaces)