Skip to content

Commit

Permalink
Remove SimpleUploadDate
Browse files Browse the repository at this point in the history
  • Loading branch information
kcrg committed Oct 26, 2024
1 parent 1310eaa commit d022679
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
7 changes: 0 additions & 7 deletions YoutubeExplode/Bridge/SearchResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ internal class VideoData(JsonElement content)
?.StripNonDigit()
?.ParseLongOrNull();

[Lazy]
public string? SimpleUploadDate =>
content
.GetPropertyOrNull("publishedTimeText")
?.GetPropertyOrNull("simpleText")
?.GetStringOrNull();

[Lazy]
public IReadOnlyList<ThumbnailData> Thumbnails =>
content
Expand Down
3 changes: 0 additions & 3 deletions YoutubeExplode/Search/SearchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ public async IAsyncEnumerable<Batch<ISearchResult>> GetResultBatchesAsync(

var viewCount = videoData.ViewCount ?? 0;

var simpleUploadDate = videoData.SimpleUploadDate;

var videoThumbnails = videoData
.Thumbnails.Select(t =>
{
Expand Down Expand Up @@ -108,7 +106,6 @@ public async IAsyncEnumerable<Batch<ISearchResult>> GetResultBatchesAsync(
new Author(videoChannelId, videoChannelTitle),
videoData.Duration,
viewCount,
simpleUploadDate,
videoThumbnails
);

Expand Down
9 changes: 0 additions & 9 deletions YoutubeExplode/Search/VideoSearchResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class VideoSearchResult(
Author author,
TimeSpan? duration,
long viewCount,
string? simpleUploadDate,
IReadOnlyList<Thumbnail> thumbnails
) : ISearchResult, IVideo
{
Expand All @@ -42,14 +41,6 @@ IReadOnlyList<Thumbnail> thumbnails
/// </remarks>
public long ViewCount { get; } = viewCount;

/// <summary>
/// Video simplyfied upload date.
/// </summary>
/// <remarks>
/// May be null if the video is planned premiere or live stream.
/// </remarks>
public string? SimpleUploadDate { get; } = simpleUploadDate;

/// <inheritdoc />
public IReadOnlyList<Thumbnail> Thumbnails { get; } = thumbnails;

Expand Down

0 comments on commit d022679

Please sign in to comment.