A couple of small fixes
This commit is contained in:
1 parent
7baa95141a
commit
5eefb9f6cd
4 files changed
+16
-16
No files matched your search
+7
-1
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- Nothing worth mentioning yet.
|
### Added
|
||||||
|
|
||||||
|
- German translation (Thanks to Lacey Anaya)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Video duration in queue view
|
||||||
|
|
||||||
## [0.35.3] - 2024-12-29
|
## [0.35.3] - 2024-12-29
|
||||||
|
|
||||||
|
|||||||
@@ -907,7 +907,7 @@ namespace Innertube
|
|||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParseAppendContinuationItemsAction(nodeData as object, context as object) as object
|
function ParseAppendContinuationItemsAction(nodeData as object, _context as object) as object
|
||||||
return nodeData["continuationItems"]
|
return nodeData["continuationItems"]
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,7 @@ function OnContentSet() as void
|
|||||||
m.top.title = content.title
|
m.top.title = content.title
|
||||||
m.top.thumbnailUri = content.thumbnail
|
m.top.thumbnailUri = content.thumbnail
|
||||||
|
|
||||||
if ValidInt(content.lengthSeconds) <> 0
|
|
||||||
SetDurationText(content.lengthText)
|
SetDurationText(content.lengthText)
|
||||||
m.top.durationRectVisible = true
|
|
||||||
else
|
|
||||||
m.top.durationRectVisible = false
|
|
||||||
end if
|
|
||||||
|
|
||||||
SetHighlight()
|
SetHighlight()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -31,6 +25,12 @@ function OnIndexSet() as void
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function SetDurationText(text as string) as void
|
function SetDurationText(text as string) as void
|
||||||
|
hasText = text <> ""
|
||||||
|
m.top.durationRectVisible = hasText
|
||||||
|
if not hasText
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
m.top.duration = text
|
m.top.duration = text
|
||||||
|
|
||||||
label = m.durationLabel
|
label = m.durationLabel
|
||||||
|
|||||||
@@ -71,12 +71,6 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
lengthSeconds = metadata.lengthSeconds
|
|
||||||
if not IsInt(lengthSeconds)
|
|
||||||
response.Default(500, "Player metadata lengthSeconds is invalid")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
index = request.query.index
|
index = request.query.index
|
||||||
if StringUtils.IsNullOrEmpty(index)
|
if StringUtils.IsNullOrEmpty(index)
|
||||||
response.Default(400, "Missing index")
|
response.Default(400, "Missing index")
|
||||||
@@ -90,7 +84,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
storyboard = storyboards[index]
|
storyboard = storyboards[index]
|
||||||
hlsManifest = m.GenerateStoryboardManifest(storyboard, lengthSeconds)
|
hlsManifest = m.GenerateStoryboardManifest(storyboard)
|
||||||
|
|
||||||
response.http_code = 200
|
response.http_code = 200
|
||||||
response.SetBodyDataString(hlsManifest)
|
response.SetBodyDataString(hlsManifest)
|
||||||
@@ -187,7 +181,7 @@ namespace Http
|
|||||||
return hlsManifest.Replace("VIDEO-RANGE=HLG", "VIDEO-RANGE=SDR").Replace("VIDEO-RANGE=PQ", "VIDEO-RANGE=SDR")
|
return hlsManifest.Replace("VIDEO-RANGE=HLG", "VIDEO-RANGE=SDR").Replace("VIDEO-RANGE=PQ", "VIDEO-RANGE=SDR")
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GenerateStoryboardManifest(storyboard as object, lengthSeconds as float) as string
|
function GenerateStoryboardManifest(storyboard as object) as string
|
||||||
tileCount = storyboard.storyboardWidth * storyboard.storyboardHeight
|
tileCount = storyboard.storyboardWidth * storyboard.storyboardHeight
|
||||||
intervalSeconds = Cdbl(storyboard.interval) / 1000.0
|
intervalSeconds = Cdbl(storyboard.interval) / 1000.0
|
||||||
targetDuration = tileCount * intervalSeconds
|
targetDuration = tileCount * intervalSeconds
|
||||||
|
|||||||
Reference in new issue
Block a user