From 796bf0e64489fd4c1ed8e39209d4f415953f6738 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 14 Nov 2020 20:08:27 +0100 Subject: [PATCH 1/2] FF --- src/renderer/views/Trending/Trending.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/views/Trending/Trending.js b/src/renderer/views/Trending/Trending.js index 8f3ada13..823d90c3 100644 --- a/src/renderer/views/Trending/Trending.js +++ b/src/renderer/views/Trending/Trending.js @@ -69,6 +69,7 @@ export default Vue.extend({ console.log('getting local trending') ytrend.scrape_trending_page(this.region).then((result) => { + console.log(result) const returnData = result.filter((item) => { return item.type === 'video' || item.type === 'channel' || item.type === 'playlist' }) From 96805f9b20e909c95e2c94642781ffd5b5653fcc Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 14 Nov 2020 20:21:22 +0100 Subject: [PATCH 2/2] Fixed invalid timestamp video urls --- src/renderer/components/ft-share-button/ft-share-button.js | 3 +++ src/renderer/views/Trending/Trending.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/ft-share-button/ft-share-button.js b/src/renderer/components/ft-share-button/ft-share-button.js index eaf9068f..febecc36 100644 --- a/src/renderer/components/ft-share-button/ft-share-button.js +++ b/src/renderer/components/ft-share-button/ft-share-button.js @@ -127,6 +127,9 @@ export default Vue.extend({ }, getFinalUrl(url) { + if (url.indexOf('?') === -1) { + return this.includeTimestamp ? `${url}?t=${this.getTimestamp()}` : url + } return this.includeTimestamp ? `${url}&t=${this.getTimestamp()}` : url }, diff --git a/src/renderer/views/Trending/Trending.js b/src/renderer/views/Trending/Trending.js index 823d90c3..8f3ada13 100644 --- a/src/renderer/views/Trending/Trending.js +++ b/src/renderer/views/Trending/Trending.js @@ -69,7 +69,6 @@ export default Vue.extend({ console.log('getting local trending') ytrend.scrape_trending_page(this.region).then((result) => { - console.log(result) const returnData = result.filter((item) => { return item.type === 'video' || item.type === 'channel' || item.type === 'playlist' })