Merge pull request #67 from cloudrac3r/dont-break-with-second

Add default values for Second's missing properties
This commit is contained in:
Preston 2020-08-11 17:25:16 -04:00 committed by GitHub
commit c5917de214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,10 +362,10 @@ export default Vue.extend({
this.videoViewCount = result.viewCount
this.videoLikeCount = result.likeCount
this.videoDislikeCount = result.dislikeCount
this.channelSubscriptionCountText = result.subCountText
this.channelSubscriptionCountText = result.subCountText || 'FT-0'
this.channelId = result.authorId
this.channelName = result.author
this.channelThumbnail = result.authorThumbnails[1].url
this.channelThumbnail = result.authorThumbnails[1] ? result.authorThumbnails[1].url : ''
this.videoPublished = result.published * 1000
this.videoDescriptionHtml = result.descriptionHtml
this.recommendedVideos = result.recommendedVideos