From 58882b3e169f5865497a8c97f42900d2c4f0477c Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 10 Apr 2021 22:04:59 +0200 Subject: [PATCH] Fix for missing import of marked as watched videos --- src/renderer/components/data-settings/data-settings.js | 2 +- src/renderer/components/ft-list-video/ft-list-video.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/data-settings/data-settings.js b/src/renderer/components/data-settings/data-settings.js index 78b32b6c..f5068f20 100644 --- a/src/renderer/components/data-settings/data-settings.js +++ b/src/renderer/components/data-settings/data-settings.js @@ -929,7 +929,7 @@ export default Vue.extend({ } }) - if (Object.keys(historyObject).length < requiredKeys.length) { + if (Object.keys(historyObject).length < (requiredKeys.length - 2)) { this.showToast({ message: this.$t('Settings.Data Settings.History object has insufficient data, skipping item') }) diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js index 50c4c2de..9ec57bce 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.js +++ b/src/renderer/components/ft-list-video/ft-list-video.js @@ -383,7 +383,7 @@ export default Vue.extend({ title: this.title, author: this.channelName, authorId: this.channelId, - published: '', + published: this.publishedText.split(',')[0], description: this.description, viewCount: this.viewCount, lengthSeconds: this.data.lengthSeconds, @@ -393,9 +393,7 @@ export default Vue.extend({ paid: false, type: 'video' } - this.updateHistory(videoData) - this.showToast({ message: this.$t('Video.Video has been marked as watched') })