Verify check
This commit is contained in:
parent
24af7a8631
commit
4e11233f3e
|
@ -85,7 +85,8 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.$store.dispatch('grabUserSettings').then(() => {
|
this.$store.dispatch('grabUserSettings').then((result) => {
|
||||||
|
console.log('AFTER GRABBING', result)
|
||||||
this.$store.dispatch('grabHistory')
|
this.$store.dispatch('grabHistory')
|
||||||
this.$store.dispatch('grabAllProfiles', this.$t('Profile.All Channels'))
|
this.$store.dispatch('grabAllProfiles', this.$t('Profile.All Channels'))
|
||||||
this.$store.dispatch('grabAllPlaylists')
|
this.$store.dispatch('grabAllPlaylists')
|
||||||
|
|
|
@ -27,7 +27,7 @@ const profileDb = new Datastore({
|
||||||
const state = {
|
const state = {
|
||||||
profileList: [{
|
profileList: [{
|
||||||
_id: 'allChannels',
|
_id: 'allChannels',
|
||||||
name: 'Brudi Channels',
|
name: 'All Channels',
|
||||||
bgColor: '#000000',
|
bgColor: '#000000',
|
||||||
textColor: '#FFFFFF',
|
textColor: '#FFFFFF',
|
||||||
subscriptions: []
|
subscriptions: []
|
||||||
|
|
|
@ -264,153 +264,157 @@ const getters = {
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
grabUserSettings ({ dispatch, commit, rootState }) {
|
grabUserSettings ({ dispatch, commit, rootState }) {
|
||||||
settingsDb.find({}, (err, results) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!err) {
|
settingsDb.find({}, (err, results) => {
|
||||||
console.log(results)
|
if (!err) {
|
||||||
results.forEach((result) => {
|
console.log(results)
|
||||||
switch (result._id) {
|
results.forEach((result) => {
|
||||||
case 'invidiousInstance':
|
switch (result._id) {
|
||||||
if (result.value === '') {
|
case 'invidiousInstance':
|
||||||
dispatch('updateInvidiousInstance', 'https://invidious.snopyta.org')
|
if (result.value === '') {
|
||||||
} else {
|
dispatch('updateInvidiousInstance', 'https://invidious.snopyta.org')
|
||||||
commit('setInvidiousInstance', result.value)
|
} else {
|
||||||
}
|
commit('setInvidiousInstance', result.value)
|
||||||
break
|
}
|
||||||
case 'backendFallback':
|
break
|
||||||
commit('setBackendFallback', result.value)
|
case 'backendFallback':
|
||||||
break
|
commit('setBackendFallback', result.value)
|
||||||
case 'defaultProfile':
|
break
|
||||||
console.log("IN SETTING DEFAULT:", result.value)
|
case 'defaultProfile':
|
||||||
commit('setDefaultProfile', result.value)
|
console.log('IN SETTING DEFAULT:', result.value)
|
||||||
break
|
commit('setDefaultProfile', result.value)
|
||||||
case 'checkForUpdates':
|
break
|
||||||
commit('setCheckForUpdates', result.value)
|
case 'checkForUpdates':
|
||||||
break
|
commit('setCheckForUpdates', result.value)
|
||||||
case 'checkForBlogPosts':
|
break
|
||||||
commit('setCheckForBlogPosts', result.value)
|
case 'checkForBlogPosts':
|
||||||
break
|
commit('setCheckForBlogPosts', result.value)
|
||||||
case 'enableSearchSuggestions':
|
break
|
||||||
commit('setEnableSearchSuggestions', result.value)
|
case 'enableSearchSuggestions':
|
||||||
break
|
commit('setEnableSearchSuggestions', result.value)
|
||||||
case 'backendPreference':
|
break
|
||||||
commit('setBackendPreference', result.value)
|
case 'backendPreference':
|
||||||
break
|
commit('setBackendPreference', result.value)
|
||||||
case 'landingPage':
|
break
|
||||||
commit('setLandingPage', result.value)
|
case 'landingPage':
|
||||||
break
|
commit('setLandingPage', result.value)
|
||||||
case 'region':
|
break
|
||||||
commit('setRegion', result.value)
|
case 'region':
|
||||||
break
|
commit('setRegion', result.value)
|
||||||
case 'listType':
|
break
|
||||||
commit('setListType', result.value)
|
case 'listType':
|
||||||
break
|
commit('setListType', result.value)
|
||||||
case 'thumbnailPreference':
|
break
|
||||||
commit('setThumbnailPreference', result.value)
|
case 'thumbnailPreference':
|
||||||
break
|
commit('setThumbnailPreference', result.value)
|
||||||
case 'barColor':
|
break
|
||||||
commit('setBarColor', result.value)
|
case 'barColor':
|
||||||
break
|
commit('setBarColor', result.value)
|
||||||
case 'uiScale':
|
break
|
||||||
webframe.setZoomFactor(parseInt(result.value) / 100)
|
case 'uiScale':
|
||||||
commit('setUiScale', result.value)
|
webframe.setZoomFactor(parseInt(result.value) / 100)
|
||||||
break
|
commit('setUiScale', result.value)
|
||||||
case 'disableSmoothScrolling':
|
break
|
||||||
commit('setDisableSmoothScrolling', result.value)
|
case 'disableSmoothScrolling':
|
||||||
break
|
commit('setDisableSmoothScrolling', result.value)
|
||||||
case 'hideWatchedSubs':
|
break
|
||||||
commit('setHideWatchedSubs', result.value)
|
case 'hideWatchedSubs':
|
||||||
break
|
commit('setHideWatchedSubs', result.value)
|
||||||
case 'useRssFeeds':
|
break
|
||||||
commit('setUseRssFeeds', result.value)
|
case 'useRssFeeds':
|
||||||
break
|
commit('setUseRssFeeds', result.value)
|
||||||
case 'rememberHistory':
|
break
|
||||||
commit('setRememberHistory', result.value)
|
case 'rememberHistory':
|
||||||
break
|
commit('setRememberHistory', result.value)
|
||||||
case 'saveWatchedProgress':
|
break
|
||||||
commit('setSaveWatchedProgress', result.value)
|
case 'saveWatchedProgress':
|
||||||
break
|
commit('setSaveWatchedProgress', result.value)
|
||||||
case 'autoplayVideos':
|
break
|
||||||
commit('setAutoplayVideos', result.value)
|
case 'autoplayVideos':
|
||||||
break
|
commit('setAutoplayVideos', result.value)
|
||||||
case 'autoplayPlaylists':
|
break
|
||||||
commit('setAutoplayPlaylists', result.value)
|
case 'autoplayPlaylists':
|
||||||
break
|
commit('setAutoplayPlaylists', result.value)
|
||||||
case 'playNextVideo':
|
break
|
||||||
commit('setPlayNextVideo', result.value)
|
case 'playNextVideo':
|
||||||
break
|
commit('setPlayNextVideo', result.value)
|
||||||
case 'enableSubtitles':
|
break
|
||||||
commit('setEnableSubtitles', result.value)
|
case 'enableSubtitles':
|
||||||
break
|
commit('setEnableSubtitles', result.value)
|
||||||
case 'forceLocalBackendForLegacy':
|
break
|
||||||
commit('setForceLocalBackendForLegacy', result.value)
|
case 'forceLocalBackendForLegacy':
|
||||||
break
|
commit('setForceLocalBackendForLegacy', result.value)
|
||||||
case 'proxyVideos':
|
break
|
||||||
commit('setProxyVideos', result.value)
|
case 'proxyVideos':
|
||||||
break
|
commit('setProxyVideos', result.value)
|
||||||
case 'useProxy':
|
break
|
||||||
commit('setUseProxy', result.value)
|
case 'useProxy':
|
||||||
break
|
commit('setUseProxy', result.value)
|
||||||
case 'proxyProtocol':
|
break
|
||||||
commit('setProxyProtocol', result.value)
|
case 'proxyProtocol':
|
||||||
break
|
commit('setProxyProtocol', result.value)
|
||||||
case 'proxyHostname':
|
break
|
||||||
commit('setProxyHostname', result.value)
|
case 'proxyHostname':
|
||||||
break
|
commit('setProxyHostname', result.value)
|
||||||
case 'proxyPort':
|
break
|
||||||
commit('setProxyPort', result.value)
|
case 'proxyPort':
|
||||||
break
|
commit('setProxyPort', result.value)
|
||||||
case 'defaultTheatreMode':
|
break
|
||||||
commit('setDefaultTheatreMode', result.value)
|
case 'defaultTheatreMode':
|
||||||
break
|
commit('setDefaultTheatreMode', result.value)
|
||||||
case 'defaultInterval':
|
break
|
||||||
commit('setDefaultInterval', result.value)
|
case 'defaultInterval':
|
||||||
break
|
commit('setDefaultInterval', result.value)
|
||||||
case 'defaultVolume':
|
break
|
||||||
commit('setDefaultVolume', result.value)
|
case 'defaultVolume':
|
||||||
sessionStorage.setItem('volume', result.value)
|
commit('setDefaultVolume', result.value)
|
||||||
break
|
sessionStorage.setItem('volume', result.value)
|
||||||
case 'defaultPlayback':
|
break
|
||||||
commit('setDefaultPlayback', result.value)
|
case 'defaultPlayback':
|
||||||
break
|
commit('setDefaultPlayback', result.value)
|
||||||
case 'defaultVideoFormat':
|
break
|
||||||
commit('setDefaultVideoFormat', result.value)
|
case 'defaultVideoFormat':
|
||||||
break
|
commit('setDefaultVideoFormat', result.value)
|
||||||
case 'defaultQuality':
|
break
|
||||||
commit('setDefaultQuality', result.value)
|
case 'defaultQuality':
|
||||||
break
|
commit('setDefaultQuality', result.value)
|
||||||
case 'hideVideoViews':
|
break
|
||||||
commit('setHideVideoViews', result.value)
|
case 'hideVideoViews':
|
||||||
break
|
commit('setHideVideoViews', result.value)
|
||||||
case 'hideVideoLikesAndDislikes':
|
break
|
||||||
commit('setHideVideoLikesAndDislikes', result.value)
|
case 'hideVideoLikesAndDislikes':
|
||||||
break
|
commit('setHideVideoLikesAndDislikes', result.value)
|
||||||
case 'hideChannelSubscriptions':
|
break
|
||||||
commit('setHideChannelSubscriptions', result.value)
|
case 'hideChannelSubscriptions':
|
||||||
break
|
commit('setHideChannelSubscriptions', result.value)
|
||||||
case 'hideCommentLikes':
|
break
|
||||||
commit('setHideCommentLikes', result.value)
|
case 'hideCommentLikes':
|
||||||
break
|
commit('setHideCommentLikes', result.value)
|
||||||
case 'hideRecommendedVideos':
|
break
|
||||||
commit('setHideRecommendedVideos', result.value)
|
case 'hideRecommendedVideos':
|
||||||
break
|
commit('setHideRecommendedVideos', result.value)
|
||||||
case 'hideTrendingVideos':
|
break
|
||||||
commit('setHideTrendingVideos', result.value)
|
case 'hideTrendingVideos':
|
||||||
break
|
commit('setHideTrendingVideos', result.value)
|
||||||
case 'hidePopularVideos':
|
break
|
||||||
commit('setHidePopularVideos', result.value)
|
case 'hidePopularVideos':
|
||||||
break
|
commit('setHidePopularVideos', result.value)
|
||||||
case 'hidePlaylists':
|
break
|
||||||
commit('setHidePlaylists', result.value)
|
case 'hidePlaylists':
|
||||||
break
|
commit('setHidePlaylists', result.value)
|
||||||
case 'hideLiveChat':
|
break
|
||||||
commit('setHideLiveChat', result.value)
|
case 'hideLiveChat':
|
||||||
break
|
commit('setHideLiveChat', result.value)
|
||||||
case 'hideActiveSubscriptions':
|
break
|
||||||
commit('setHideActiveSubscriptions', result.value)
|
case 'hideActiveSubscriptions':
|
||||||
break
|
commit('setHideActiveSubscriptions', result.value)
|
||||||
}
|
break
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
|
resolve()
|
||||||
|
}
|
||||||
|
reject(err)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -252,6 +252,7 @@ const actions = {
|
||||||
},
|
},
|
||||||
|
|
||||||
ytGetPlaylistInfo ({ rootState }, playlistId) {
|
ytGetPlaylistInfo ({ rootState }, playlistId) {
|
||||||
|
console.log("PALYLIST INTOFOF")
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
console.log(playlistId)
|
console.log(playlistId)
|
||||||
console.log('Getting playlist info please wait...')
|
console.log('Getting playlist info please wait...')
|
||||||
|
@ -297,6 +298,7 @@ const actions = {
|
||||||
limit: 'Infinity',
|
limit: 'Infinity',
|
||||||
requestOptions: { agent }
|
requestOptions: { agent }
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
console.log("RESULT PLAYLIST", result)
|
||||||
resolve(result)
|
resolve(result)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|
Loading…
Reference in New Issue