Show lines in playlist view
This commit is contained in:
1 parent
07ebd011cf
commit
68a4f9fade
6 files changed
+31
-3
No files matched your search
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- German translation
|
- German translation
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Display issue in playlist view
|
||||||
|
|
||||||
## [0.38.1] - 2025-05-20
|
## [0.38.1] - 2025-05-20
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -22,7 +22,10 @@
|
|||||||
<field id="title" type="string" />
|
<field id="title" type="string" />
|
||||||
<field id="videoId" type="string" />
|
<field id="videoId" type="string" />
|
||||||
<field id="viewCountText" type="string" />
|
<field id="viewCountText" type="string" />
|
||||||
|
<!-- lines is from the tv client (author name + video info) -->
|
||||||
<field id="lines" type="stringarray" />
|
<field id="lines" type="stringarray" />
|
||||||
|
<!-- videoInfo is from web client -->
|
||||||
|
<field id="videoInfo" type="string" />
|
||||||
<field id="percentDurationWatched" type="float" />
|
<field id="percentDurationWatched" type="float" />
|
||||||
</interface>
|
</interface>
|
||||||
</component>
|
</component>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/TimeUtils.bs"
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
@@ -15,7 +16,23 @@ function OnContentSet() as void
|
|||||||
|
|
||||||
m.top.title = content.title
|
m.top.title = content.title
|
||||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||||
m.top.author = content._author
|
author = content._author
|
||||||
|
if not StringUtils.IsNullOrEmpty(author)
|
||||||
|
videoInfo = content.videoInfo
|
||||||
|
if not StringUtils.IsNullOrEmpty(videoInfo)
|
||||||
|
author += `\n` + videoInfo
|
||||||
|
end if
|
||||||
|
else
|
||||||
|
lines = content.lines
|
||||||
|
if IsArray(lines) and lines.Count() > 0
|
||||||
|
author = lines[0]
|
||||||
|
if lines.Count() > 1
|
||||||
|
author += `\n` + lines[1]
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
m.top.author = author
|
||||||
|
|
||||||
m.top.thumbnailUri = content.thumbnail
|
m.top.thumbnailUri = content.thumbnail
|
||||||
|
|
||||||
SetDurationText(content.lengthText)
|
SetDurationText(content.lengthText)
|
||||||
|
|||||||
@@ -44,8 +44,9 @@
|
|||||||
<Label
|
<Label
|
||||||
id="authorLabel"
|
id="authorLabel"
|
||||||
width="350"
|
width="350"
|
||||||
height="25"
|
font="font:SmallestSystemFont"
|
||||||
font="font:SmallestSystemFont" />
|
maxLines="2"
|
||||||
|
wrap="true" />
|
||||||
</LayoutGroup>
|
</LayoutGroup>
|
||||||
</children>
|
</children>
|
||||||
|
|
||||||
|
|||||||
@@ -445,6 +445,7 @@ namespace Innertube
|
|||||||
|
|
||||||
lengthText = ParseText(nodeData["lengthText"])
|
lengthText = ParseText(nodeData["lengthText"])
|
||||||
lengthSeconds = ValidString(nodeData["lengthSeconds"]).ToInt()
|
lengthSeconds = ValidString(nodeData["lengthSeconds"]).ToInt()
|
||||||
|
videoInfo = ParseText(nodeData["videoInfo"])
|
||||||
|
|
||||||
author = invalid
|
author = invalid
|
||||||
authorId = invalid
|
authorId = invalid
|
||||||
@@ -477,6 +478,7 @@ namespace Innertube
|
|||||||
"index": ParseText(nodeData["index"]).ToInt()
|
"index": ParseText(nodeData["index"]).ToInt()
|
||||||
"lengthText": lengthText
|
"lengthText": lengthText
|
||||||
"lengthSeconds": lengthSeconds
|
"lengthSeconds": lengthSeconds
|
||||||
|
"videoInfo": videoInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
PushFeedItem(video, context)
|
PushFeedItem(video, context)
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ namespace InvidiousContent
|
|||||||
node.viewCountText = VideoGetViewCountText(item)
|
node.viewCountText = VideoGetViewCountText(item)
|
||||||
SetIfExists(node, "index", item, "index")
|
SetIfExists(node, "index", item, "index")
|
||||||
SetIfExists(node, "lines", item, "lines")
|
SetIfExists(node, "lines", item, "lines")
|
||||||
|
SetIfExists(node, "videoInfo", item, "videoInfo")
|
||||||
SetIfExists(node, "percentDurationWatched", item, "percentDurationWatched")
|
SetIfExists(node, "percentDurationWatched", item, "percentDurationWatched")
|
||||||
|
|
||||||
return node
|
return node
|
||||||
|
|||||||
Reference in new issue
Block a user