mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
Subscriptions: Fix casing of XML tag names
This commit is contained in:
parent
ce1fb8d08c
commit
c385a944e6
@ -199,7 +199,7 @@ def fetch_channel(ucid, pull_all_videos : Bool)
|
|||||||
|
|
||||||
LOGGER.trace("fetch_channel: #{ucid} : Extracting videos from channel RSS feed")
|
LOGGER.trace("fetch_channel: #{ucid} : Extracting videos from channel RSS feed")
|
||||||
rss.xpath_nodes("//default:feed/default:entry", namespaces).each do |entry|
|
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
|
title = entry.xpath_node("default:title", namespaces).not_nil!.content
|
||||||
|
|
||||||
published = Time.parse_rfc3339(
|
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
|
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
|
views = entry
|
||||||
.xpath_node("media:group/media:community/media:statistics", namespaces)
|
.xpath_node("media:group/media:community/media:statistics", namespaces)
|
||||||
|
Loading…
Reference in New Issue
Block a user