-
+
+
+ {{ $t("Settings.Privacy Settings.Privacy Settings") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/renderer/store/modules/history.js b/src/renderer/store/modules/history.js
index 22b6b277..9bedc080 100644
--- a/src/renderer/store/modules/history.js
+++ b/src/renderer/store/modules/history.js
@@ -63,6 +63,14 @@ const actions = {
})
},
+ removeAllHistory ({ dispatch }) {
+ historyDb.remove({}, { multi: true }, (err, numReplaced) => {
+ if (!err) {
+ dispatch('grabHistory')
+ }
+ })
+ },
+
updateWatchProgress ({ dispatch }, videoData) {
historyDb.update({ videoId: videoData.videoId }, { $set: { watchProgress: videoData.watchProgress } }, { upsert: true }, (err, numReplaced) => {
if (!err) {
diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js
index bbb74e34..a2670de3 100644
--- a/src/renderer/store/modules/settings.js
+++ b/src/renderer/store/modules/settings.js
@@ -39,6 +39,7 @@ const state = {
barColor: false,
enableSearchSuggestions: true,
rememberHistory: true,
+ saveWatchedProgress: true,
autoplayVideos: true,
autoplayPlaylists: true,
playNextVideo: false,
@@ -105,6 +106,10 @@ const getters = {
return state.rememberHistory
},
+ getSaveWatchedProgress: () => {
+ return state.saveWatchedProgress
+ },
+
getAutoplayVideos: () => {
return state.autoplayVideos
},
@@ -198,6 +203,9 @@ const actions = {
case 'rememberHistory':
commit('setRememberHistory', result.value)
break
+ case 'saveWatchedProgress':
+ commit('setSaveWatchedProgress', result.value)
+ break
case 'autoplayVideos':
commit('setAutoplayVideos', result.value)
break
@@ -327,6 +335,14 @@ const actions = {
})
},
+ updateSaveWatchedProgress ({ commit }, saveWatchedProgress) {
+ settingsDb.update({ _id: 'saveWatchedProgress' }, { _id: 'saveWatchedProgress', value: saveWatchedProgress }, { upsert: true }, (err, numReplaced) => {
+ if (!err) {
+ commit('setSaveWatchedProgress', saveWatchedProgress)
+ }
+ })
+ },
+
updateAutoplayVideos ({ commit }, autoplayVideos) {
settingsDb.update({ _id: 'autoplayVideos' }, { _id: 'autoplayVideos', value: autoplayVideos }, { upsert: true }, (err, numReplaced) => {
if (!err) {
@@ -462,6 +478,9 @@ const mutations = {
setRememberHistory (state, rememberHistory) {
state.rememberHistory = rememberHistory
},
+ setSaveWatchedProgress (state, saveWatchedProgress) {
+ state.saveWatchedProgress = saveWatchedProgress
+ },
setAutoplayVideos (state, autoplayVideos) {
state.autoplayVideos = autoplayVideos
},
diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js
index bef9726b..e62cbb5f 100644
--- a/src/renderer/store/modules/utils.js
+++ b/src/renderer/store/modules/utils.js
@@ -230,6 +230,10 @@ const actions = {
return publicationString
},
+ clearSessionSearchHistory ({ commit }) {
+ commit('setSessionSearchHistory', [])
+ },
+
showToast (_, payload) {
FtToastEvents.$emit('toast.open', payload.message, payload.action, payload.time)
}
diff --git a/src/renderer/views/Settings/Settings.js b/src/renderer/views/Settings/Settings.js
index 4dae8dc5..b43a3646 100644
--- a/src/renderer/views/Settings/Settings.js
+++ b/src/renderer/views/Settings/Settings.js
@@ -4,6 +4,7 @@ import FtElementList from '../../components/ft-element-list/ft-element-list.vue'
import GeneralSettings from '../../components/general-settings/general-settings.vue'
import ThemeSettings from '../../components/theme-settings/theme-settings.vue'
import PlayerSettings from '../../components/player-settings/player-settings.vue'
+import PrivacySettings from '../../components/privacy-settings/privacy-settings.vue'
import SubscriptionSettings from '../../components/subscription-settings/subscription-settings.vue'
export default Vue.extend({
@@ -14,6 +15,7 @@ export default Vue.extend({
'general-settings': GeneralSettings,
'theme-settings': ThemeSettings,
'player-settings': PlayerSettings,
+ 'privacy-settings': PrivacySettings,
'subscription-settings': SubscriptionSettings
},
mounted: function () {
diff --git a/src/renderer/views/Settings/Settings.vue b/src/renderer/views/Settings/Settings.vue
index fbdef659..665ad161 100644
--- a/src/renderer/views/Settings/Settings.vue
+++ b/src/renderer/views/Settings/Settings.vue
@@ -3,6 +3,7 @@
+
diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js
index dd432154..9c4bac09 100644
--- a/src/renderer/views/Watch/Watch.js
+++ b/src/renderer/views/Watch/Watch.js
@@ -81,6 +81,10 @@ export default Vue.extend({
return this.$store.getters.getRememberHistory
},
+ saveWatchedProgress: function () {
+ return this.$store.getters.getSaveWatchedProgress
+ },
+
backendPreference: function () {
return this.$store.getters.getBackendPreference
},
@@ -696,7 +700,7 @@ export default Vue.extend({
if (this.rememberHistory && !this.isLoading && !this.isLive) {
const player = this.$refs.videoPlayer.player
- if (typeof player !== 'undefined') {
+ if (typeof player !== 'undefined' && this.saveWatchedProgress) {
const currentTime = this.$refs.videoPlayer.player.currentTime()
console.log(currentTime)
const payload = {
diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml
index f1701b4f..a3f5028a 100644
--- a/static/locales/en-US.yaml
+++ b/static/locales/en-US.yaml
@@ -1,3 +1,5 @@
+# Put the name of your locale in the same language
+Locale Name: English
FreeTube: FreeTube
# Currently on Subscriptions, Playlists, and History
'This part of the app is not ready yet. Come back later when progress has been made.': >-
@@ -138,7 +140,6 @@ Settings:
Player Settings:
Player Settings: Player Settings
Force Local Backend for Legacy Formats: Force Local Backend for Legacy Formats
- Remember History: Remember History
Play Next Video: Play Next Video
Turn on Subtitles by Default: Turn on Subtitles by Default
Autoplay Videos: Autoplay Videos
@@ -164,6 +165,16 @@ Settings:
1440p: 1440p
4k: 4k
8k: 8k
+ Privacy Settings:
+ Privacy Settings: Privacy Settings
+ Remember History: Remember History
+ Save Watched Progress: Save Watched Progress
+ Clear Search Cache: Clear Search Cache
+ Are you sure you want to clear out your search cache?: Are you sure you want to clear out your search cache?
+ Search cache has been cleared: Search cache has been cleared
+ Remove Watch History: Remove Watch History
+ Are you sure you want to remove your entire watch history?: Are you sure you want to remove your entire watch history?
+ Watch history has been cleared: Watch history has been cleared
Subscription Settings:
Subscription Settings: Subscription Settings
Hide Videos on Watch: Hide Videos on Watch