mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add fix for removed videos in subbox
This commit is contained in:
parent
cf9a8b0037
commit
823f679cef
1 changed files with 2 additions and 0 deletions
|
@ -532,6 +532,8 @@ def fetch_channel(id, client, db)
|
||||||
rss = client.get("/feeds/videos.xml?channel_id=#{id}").body
|
rss = client.get("/feeds/videos.xml?channel_id=#{id}").body
|
||||||
rss = XML.parse_html(rss)
|
rss = XML.parse_html(rss)
|
||||||
|
|
||||||
|
db.exec("DELETE FROM channel_videos * WHERE ucid = $1", id)
|
||||||
|
|
||||||
rss.xpath_nodes("//feed/entry").each do |entry|
|
rss.xpath_nodes("//feed/entry").each do |entry|
|
||||||
video_id = entry.xpath_node("videoid").not_nil!.content
|
video_id = entry.xpath_node("videoid").not_nil!.content
|
||||||
title = entry.xpath_node("title").not_nil!.content
|
title = entry.xpath_node("title").not_nil!.content
|
||||||
|
|
Loading…
Reference in a new issue