mirror of https://github.com/Chocobozzz/PeerTube
Fix playlist autoplay
parent
9cdeb80650
commit
9870329f69
|
@ -242,6 +242,7 @@ export class UserService {
|
|||
|
||||
getAnonymousUser () {
|
||||
let videoLanguages
|
||||
|
||||
try {
|
||||
videoLanguages = JSON.parse(this.localStorageService.getItem(User.KEYS.VIDEO_LANGUAGES))
|
||||
} catch (err) {
|
||||
|
@ -253,11 +254,12 @@ export class UserService {
|
|||
// local storage keys
|
||||
nsfwPolicy: this.localStorageService.getItem(User.KEYS.NSFW_POLICY) as NSFWPolicyType,
|
||||
webTorrentEnabled: this.localStorageService.getItem(User.KEYS.WEBTORRENT_ENABLED) !== 'false',
|
||||
autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true',
|
||||
autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) === 'true',
|
||||
theme: this.localStorageService.getItem(User.KEYS.THEME) || 'default',
|
||||
videoLanguages,
|
||||
|
||||
autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) !== 'false',
|
||||
autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true',
|
||||
|
||||
// session storage keys
|
||||
autoPlayNextVideo: this.sessionStorageService.getItem(User.KEYS.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO) === 'true'
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue