Add another check for duration in a search
This commit is contained in:
parent
4a6372b6ac
commit
87294698ad
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue