summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2020-04-10 11:49:51 -0500
committerOmar Roth <omarroth@protonmail.com>2020-04-10 11:49:51 -0500
commit7bb7003c9daa933f036d3d832b91d5b2c558ed98 (patch)
treec23028b5eef025546004e224b537b3daa325565c
parent920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb (diff)
downloadinvidious-7bb7003c9daa933f036d3d832b91d5b2c558ed98.tar.gz
invidious-7bb7003c9daa933f036d3d832b91d5b2c558ed98.tar.bz2
invidious-7bb7003c9daa933f036d3d832b91d5b2c558ed98.zip
Fix authorThumbnails in /api/v1/channels
-rw-r--r--src/invidious.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 754d1513..2d72f49f 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -3149,8 +3149,8 @@ get "/feed/channel/:ucid" do |env|
next error_message
end
- rss = YT_POOL.client &.get("/feeds/videos.xml?channel_id=#{channel.ucid}").body
- rss = XML.parse_html(rss)
+ response = YT_POOL.client &.get("/feeds/videos.xml?channel_id=#{channel.ucid}")
+ rss = XML.parse_html(response.body)
videos = rss.xpath_nodes("//feed/entry").map do |entry|
video_id = entry.xpath_node("videoid").not_nil!.content
@@ -4259,7 +4259,7 @@ get "/api/v1/channels/:ucid" do |env|
qualities.each do |quality|
json.object do
- json.field "url", channel.author_thumbnail.gsub(/=\d+/, "=s#{quality}")
+ json.field "url", channel.author_thumbnail.gsub(/=s\d+/, "=s#{quality}")
json.field "width", quality
json.field "height", quality
end
hover-highlight'> 2021-07-12left some unnecessary spaces here and thereKotuklion 2021-07-12fix minor typosKotuklion 2021-07-12add Wikiless supportKotuklion 2021-07-11Italian translation fixunbranched Title fix 2021-07-10Add redirect for Norwegian Google TranslateTim Hårek Andreassen Signed-off-by: Tim Hårek Andreassen <tim@harek.dev> 2021-07-10Bump version & update dependencies.v1.1.48SimonBrazell 2021-07-10Closes #242: remove "new" tag from SimplyTranslate.SimonBrazell 2021-06-16Fixes #238SimonBrazell 2021-06-16Redirect Twitter "video" subdomain & update dev dependencies.SimonBrazell 2021-06-16Fixed license linkGaurang Tandon 2021-06-16Added reddit.artemislena.euFantasyCookie17 2021-06-12Only append autoplay parameter if necessarybopol