Skip to content

Commit

Permalink
Keywords can now be null (#42)
Browse files Browse the repository at this point in the history
* Keywords can not exist now? fun?
* Bump version
  • Loading branch information
kuylar committed Oct 30, 2023
1 parent 9ae8dea commit c2e82f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions InnerTube/InnerTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<PackageLicenseUrl>https://github.com/kuylar/InnerTube/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/kuylar/InnerTube</RepositoryUrl>
<PackageTags>youtube, innertube</PackageTags>
<AssemblyVersion>1.0.26</AssemblyVersion>
<Version>1.0.26</Version>
<AssemblyVersion>1.0.27</AssemblyVersion>
<Version>1.0.27</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Remove/comment this while looking for missing XMLDocs -->
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion InnerTube/Models/InnerTubePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public InnerTubePlayer(JObject playerResponse, JObject metadataResponse)
Id = metadataResponse.GetFromJsonPath<string>("videoDetails.channelId")!,
Title = metadataResponse.GetFromJsonPath<string>("videoDetails.author")!
},
Keywords = metadataResponse.GetFromJsonPath<string[]>("videoDetails.keywords")!,
Keywords = metadataResponse.GetFromJsonPath<string[]>("videoDetails.keywords") ?? Array.Empty<string>(),
ShortDescription = metadataResponse.GetFromJsonPath<string>("videoDetails.shortDescription")!,
Category = metadataResponse.GetFromJsonPath<string>("videoDetails.category")!,
UploadDate = DateTimeOffset.Parse(metadataResponse.GetFromJsonPath<string>("microformat.playerMicroformatRenderer.uploadDate")!, CultureInfo.InvariantCulture),
Expand Down

0 comments on commit c2e82f7

Please sign in to comment.