Fix a bug where loading a bookmarked playlist would fail (#712)
This commit is contained in:
1 parent
48b0efc713
commit
d9147e46dc
4 files changed
+19
-3
No files matched your search
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Various telemetry issues
|
||||
- Ignore certain nodes in parser (such as movies, since they are not supported)
|
||||
- A bug where video title is missing while loading
|
||||
- A bug where loading a bookmarked playlist would fail
|
||||
|
||||
## [0.41.1] - 2025-08-29
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace Innertube
|
||||
playlist["description"] = description
|
||||
end if
|
||||
if thumbnail <> invalid
|
||||
playlist["thumbnail"] = thumbnail
|
||||
playlist["playlistThumbnail"] = thumbnail
|
||||
end if
|
||||
if statsText <> invalid
|
||||
playlist["statsText"] = statsText
|
||||
@@ -278,8 +278,8 @@ namespace Innertube
|
||||
end if
|
||||
end if
|
||||
|
||||
if playlist["thumbnail"] = invalid and playlist["videos"].Count() > 0
|
||||
playlist["thumbnail"] = ObjectUtils.Dig(playlist, ["videos", 0, "thumbnails", 0, "url"])
|
||||
if playlist["playlistThumbnail"] = invalid and playlist["videos"].Count() > 0
|
||||
playlist["playlistThumbnail"] = ObjectUtils.Dig(playlist, ["videos", 0, "thumbnails", 0, "url"])
|
||||
end if
|
||||
|
||||
return playlist
|
||||
|
||||
+11
@@ -628,6 +628,7 @@ namespace Http
|
||||
end if
|
||||
continuation = request.query.continuation
|
||||
raw = request.query.raw <> invalid
|
||||
infoOnly = request.query.info_only <> invalid
|
||||
|
||||
options = {
|
||||
raw: raw
|
||||
@@ -682,6 +683,16 @@ namespace Http
|
||||
end if
|
||||
end if
|
||||
|
||||
' info_only is Playlet specific. If set, we only care about the playlist info,
|
||||
' not the videos. This usually means we're loading info for a bookmark.
|
||||
' When that's the case, we want to get rid of the continuation, because a
|
||||
' continuation from an unauthenticated innertube request is not compatible
|
||||
' with an authenticated innertube request.
|
||||
if infoOnly
|
||||
playlist.videos = []
|
||||
playlist.Delete("continuation")
|
||||
end if
|
||||
|
||||
response.Json(playlist)
|
||||
return true
|
||||
end function
|
||||
|
||||
@@ -106,6 +106,10 @@ playlist_info:
|
||||
url: /api/v1/playlists/{plid}
|
||||
responseHandler: PlaylistInfoHandler
|
||||
cacheSeconds: 259200 # 3 days
|
||||
queryParams:
|
||||
info_only:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
channel_info:
|
||||
title: Channel
|
||||
|
||||
Reference in new issue
Block a user