Add another check for duration in a search

This commit is contained in:
Preston 2020-08-24 21:53:02 -04:00
parent 4a6372b6ac
commit 87294698ad
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export default Vue.extend({
if (video.uploaded_at !== null) { if (video.uploaded_at !== null) {
publishDate = ytTrendScraper.calculate_published(video.uploaded_at, Date.now()) publishDate = ytTrendScraper.calculate_published(video.uploaded_at, Date.now())
} }
if (video.duration !== null) { if (video.duration !== null && video.duration !== '') {
videoDuration = ytTrendScraper.calculate_length_in_seconds(video.duration) videoDuration = ytTrendScraper.calculate_length_in_seconds(video.duration)
} }
returnDataInvidious.push( returnDataInvidious.push(