Skip to content

Commit

Permalink
google's shorts dont have view counts on them. also bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kuylar committed Jun 11, 2023
1 parent c66e1fc commit fb8222d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.17</AssemblyVersion>
<Version>1.0.17</Version>
<AssemblyVersion>1.0.18</AssemblyVersion>
<Version>1.0.18</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Remove/comment this while looking for missing XMLDocs -->
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down
4 changes: 2 additions & 2 deletions InnerTube/Renderers/ReelItemRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ public class ReelItemRenderer : IRenderer

public string Id { get; }
public string Title { get; }
public string ViewCount { get; }
public string? ViewCount { get; }
public IEnumerable<Thumbnail> Thumbnails { get; }

public ReelItemRenderer(JToken renderer)
{
Id = renderer["videoId"]!.ToString();
Title = renderer.GetFromJsonPath<string>("headline.simpleText")!;
ViewCount = renderer["viewCountText"]!["simpleText"]!.ToString();
ViewCount = renderer["viewCountText"]?["simpleText"]?.ToString();
Thumbnails = Utils.GetThumbnails(renderer.GetFromJsonPath<JArray>("thumbnail.thumbnails") ?? new JArray());
}

Expand Down

0 comments on commit fb8222d

Please sign in to comment.