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

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