mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-17 18:38:50 +00:00
Removed dummy values and added checks for items.ecr
This commit is contained in:
@@ -156,7 +156,7 @@ module Invidious::Routes::Feeds
|
||||
|
||||
response = YT_POOL.client &.get("/feeds/videos.xml?channel_id=#{channel.ucid}")
|
||||
rss = XML.parse_html(response.body)
|
||||
|
||||
print(response)
|
||||
videos = rss.xpath_nodes("//feed/entry").map do |entry|
|
||||
video_id = entry.xpath_node("videoid").not_nil!.content
|
||||
title = entry.xpath_node("title").not_nil!.content
|
||||
@@ -182,7 +182,7 @@ module Invidious::Routes::Feeds
|
||||
paid: false,
|
||||
premium: false,
|
||||
premiere_timestamp: nil,
|
||||
author_verified: false, #TODO real value
|
||||
author_verified: false, # ¯\_(ツ)_/¯
|
||||
})
|
||||
end
|
||||
|
||||
@@ -415,7 +415,6 @@ module Invidious::Routes::Feeds
|
||||
live_now: video.live_now,
|
||||
premiere_timestamp: video.premiere_timestamp,
|
||||
views: video.views,
|
||||
author_verified: false, #TODO dummy for components/item.ecr
|
||||
})
|
||||
|
||||
was_insert = Invidious::Database::ChannelVideos.insert(video, with_premiere_timestamp: true)
|
||||
|
||||
Reference in New Issue
Block a user