Fix a bug where loading a bookmarked playlist would fail (#712)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-09-02 21:02:51 -04:00
1 parent 48b0efc713
commit d9147e46dc
4 files changed
+19 -3

No files matched your search

@@ -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