diff --git a/CHANGELOG.md b/CHANGELOG.md index f8cd2dc1..499606b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Layout in channel view so that the upload time and view count of videos is visible - A few things in the logger +- A bug where channels show "0 videos". Channel handle is shown instead. ### Changed diff --git a/playlet-lib/src/components/ContentNode/ChannelContentNode.xml b/playlet-lib/src/components/ContentNode/ChannelContentNode.xml index 5b484f1d..f0e52d93 100644 --- a/playlet-lib/src/components/ContentNode/ChannelContentNode.xml +++ b/playlet-lib/src/components/ContentNode/ChannelContentNode.xml @@ -8,6 +8,7 @@ + diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs index a29c0ba2..c7210a79 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs @@ -110,6 +110,7 @@ namespace InvidiousContent ' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation. SetIfExists(node, "_author", item, "author") SetIfExists(node, "authorId", item, "authorId") + SetIfExists(node, "channelHandle", item, "channelHandle") SetIfExists(node, "description", item, "description") SetIfExists(node, "subCount", item, "subCount") node.subCountText = GetChannelSubCountText(item) diff --git a/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.bs b/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.bs index 90b42fdf..139a2570 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.bs @@ -8,6 +8,6 @@ function OnContentSet() as void ' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation. m.top._author = content._author m.top.subCountText = content.subCountText - m.top.videoCountText = content.videoCountText + m.top.channelHandle = content.channelHandle m.top.thumbnail = content.thumbnail end function diff --git a/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.xml b/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.xml index 0971d73a..6cd45b9e 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.xml +++ b/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.xml @@ -3,7 +3,7 @@ - + @@ -29,7 +29,7 @@ height="25" font="font:SmallestSystemFont" />