Skip to content

Commit 2c1c402

Browse files
authored
Fix extracting own playlist info when authenticated (#791)
1 parent dbd506e commit 2c1c402

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

YoutubeExplode/Bridge/PlaylistBrowseResponse.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ internal partial class PlaylistBrowseResponse(JsonElement content) : IPlaylistDa
4545
?.EnumerateArrayOrNull()
4646
?.Select(j => j.GetPropertyOrNull("text")?.GetStringOrNull())
4747
.WhereNotNull()
48-
.ConcatToString();
48+
.ConcatToString()
49+
?? SidebarPrimary
50+
?.GetPropertyOrNull("titleForm")
51+
?.GetPropertyOrNull("inlineFormRenderer")
52+
?.GetPropertyOrNull("formField")
53+
?.GetPropertyOrNull("textInputFormFieldRenderer")
54+
?.GetPropertyOrNull("value")
55+
?.GetStringOrNull();
4956

5057
[Lazy]
5158
private JsonElement? AuthorDetails =>
@@ -85,7 +92,14 @@ internal partial class PlaylistBrowseResponse(JsonElement content) : IPlaylistDa
8592
?.EnumerateArrayOrNull()
8693
?.Select(j => j.GetPropertyOrNull("text")?.GetStringOrNull())
8794
.WhereNotNull()
88-
.ConcatToString();
95+
.ConcatToString()
96+
?? SidebarPrimary
97+
?.GetPropertyOrNull("descriptionForm")
98+
?.GetPropertyOrNull("inlineFormRenderer")
99+
?.GetPropertyOrNull("formField")
100+
?.GetPropertyOrNull("textInputFormFieldRenderer")
101+
?.GetPropertyOrNull("value")
102+
?.GetStringOrNull();
89103

90104
[Lazy]
91105
public IReadOnlyList<ThumbnailData> Thumbnails =>

0 commit comments

Comments
 (0)