Skip to content

Commit

Permalink
show precise view count for videos on the search results page
Browse files Browse the repository at this point in the history
  • Loading branch information
OothecaPickle committed Dec 6, 2024
1 parent 1a82e9d commit b18cd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ export function parseLocalListVideo(item) {
author: video.author.name,
authorId: video.author.id,
description: video.description,
viewCount: isNaN(video.view_count) ? (video.short_view_count.text == null ? null : parseLocalSubscriberCount(video.short_view_count.text)) : extractNumberFromString(video.view_count.text),
viewCount: video.view_count == null ? (video.short_view_count.text == null ? null : parseLocalSubscriberCount(video.short_view_count.text)) : extractNumberFromString(video.view_count.text),
published,
lengthSeconds: isNaN(video.duration.seconds) ? '' : video.duration.seconds,
liveNow: video.is_live,
Expand Down

0 comments on commit b18cd46

Please sign in to comment.