Skip to content

Commit

Permalink
Fix extracting own playlist info when authenticated (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored May 21, 2024
1 parent dbd506e commit 2c1c402
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions YoutubeExplode/Bridge/PlaylistBrowseResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ internal partial class PlaylistBrowseResponse(JsonElement content) : IPlaylistDa
?.EnumerateArrayOrNull()
?.Select(j => j.GetPropertyOrNull("text")?.GetStringOrNull())
.WhereNotNull()
.ConcatToString();
.ConcatToString()
?? SidebarPrimary
?.GetPropertyOrNull("titleForm")
?.GetPropertyOrNull("inlineFormRenderer")
?.GetPropertyOrNull("formField")
?.GetPropertyOrNull("textInputFormFieldRenderer")
?.GetPropertyOrNull("value")
?.GetStringOrNull();

[Lazy]
private JsonElement? AuthorDetails =>
Expand Down Expand Up @@ -85,7 +92,14 @@ internal partial class PlaylistBrowseResponse(JsonElement content) : IPlaylistDa
?.EnumerateArrayOrNull()
?.Select(j => j.GetPropertyOrNull("text")?.GetStringOrNull())
.WhereNotNull()
.ConcatToString();
.ConcatToString()
?? SidebarPrimary
?.GetPropertyOrNull("descriptionForm")
?.GetPropertyOrNull("inlineFormRenderer")
?.GetPropertyOrNull("formField")
?.GetPropertyOrNull("textInputFormFieldRenderer")
?.GetPropertyOrNull("value")
?.GetStringOrNull();

[Lazy]
public IReadOnlyList<ThumbnailData> Thumbnails =>
Expand Down

0 comments on commit 2c1c402

Please sign in to comment.