Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Make an actual fix for video names not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestonN committed Aug 8, 2020
1 parent 0e2e31f commit 470d617
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ class YoutubeGrabberHelper {
video = obj.gridVideoRenderer
}

let title = video.title.simpleText

if (typeof (title) === 'undefined') {
title = video.title.runs[0].text
}

if (typeof (video.shortViewCountText) !== 'undefined' && typeof (video.shortViewCountText.simpleText) === 'undefined') {
liveNow = true
publishedText = 'Live'
Expand Down Expand Up @@ -108,7 +114,7 @@ class YoutubeGrabberHelper {

return {
type: 'video',
title: video.title.runs[0].text,
title: title,
videoId: video.videoId,
author: channelInfo.channelName,
authorId: channelInfo.channelId,
Expand Down

0 comments on commit 470d617

Please sign in to comment.