Feature/channel view content (#150)
* ChannelView feeds * Fixes for web app * Add request id to error message
This commit is contained in:
1 parent
e2df0b524a
commit
dab6dc5bc4
20 files changed
+414
-133
No files matched your search
@@ -115,22 +115,7 @@ namespace InvidiousContent
|
||||
node.videoCountText = GetVideoCountText(item)
|
||||
node.thumbnail = GetChannelThumbnail(item.authorThumbnails)
|
||||
node.banner = GetChannelBanner(item.authorBanners)
|
||||
|
||||
if item.latestVideos <> invalid
|
||||
newNodes = []
|
||||
|
||||
for each video in item.latestVideos
|
||||
video.type = "video"
|
||||
videoNode = ToVideoContentNode(invalid, video, instance)
|
||||
if videoNode <> invalid
|
||||
newNodes.push(videoNode)
|
||||
end if
|
||||
end for
|
||||
|
||||
if newNodes.Count() > 0
|
||||
node.latestVideos.appendChildren(newNodes)
|
||||
end if
|
||||
end if
|
||||
SetIfExists(node, "tabs", item, "tabs")
|
||||
|
||||
return node
|
||||
end function
|
||||
@@ -245,7 +230,7 @@ namespace InvidiousContent
|
||||
if authorBanners = invalid or authorBanners.Count() = 0
|
||||
return ""
|
||||
end if
|
||||
return authorBanners[authorBanners.Count() - 1].url
|
||||
return authorBanners[0].url
|
||||
end function
|
||||
|
||||
function GetVideoCountText(item as object) as string
|
||||
|
||||
Reference in new issue
Block a user