Add default values for Second's missing properties

This commit is contained in:
Cadence Ember 2020-08-09 20:34:38 +12:00
parent 93e96185ef
commit fe94dce5e3
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -351,10 +351,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