From dd7bbda0cb05b2592c5b399019f45b1d0e9b93f1 Mon Sep 17 00:00:00 2001 From: Preston Date: Fri, 1 Mar 2019 19:26:14 -0500 Subject: [PATCH] Hide Views and Post Date on Premium content in a search --- src/js/videos.js | 3 +-- src/templates/videoTemplate.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/videos.js b/src/js/videos.js index 5d99703b6..c9bfd736f 100644 --- a/src/js/videos.js +++ b/src/js/videos.js @@ -170,8 +170,6 @@ function displayVideo(videoData, listType = '') { } } - //const searchMenu = $('#videoListContainer').html(); - // Include a remove icon in the list if the application is displaying the history list or saved videos. video.deleteHtml = () => { switch (listType) { @@ -195,6 +193,7 @@ function displayVideo(videoData, listType = '') { video.channelId = videoData.authorId; video.description = videoData.description; video.isVideo = true; + video.premium = videoData.premium; switch (listType) { case 'subscriptions': diff --git a/src/templates/videoTemplate.html b/src/templates/videoTemplate.html index 92238a641..b20a91cee 100644 --- a/src/templates/videoTemplate.html +++ b/src/templates/videoTemplate.html @@ -29,7 +29,7 @@

{{video.title}}

{{video.channelName}}

-

{{video.views}} {{video.viewText}} - {{video.publishedDate}}

+

{{video.views}} {{video.viewText}} - {{video.publishedDate}}

{{video.description}}

{{video.liveText}}