diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-08 09:41:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-08 09:41:43 +0200 |
commit | 9870329f6946f5fbbec9860652cee6fb12fdc2aa (patch) | |
tree | b77e122ee3f816978f54f6eface460a48a18680b /client | |
parent | 9cdeb80650d90b80f74d6453d8f50e6855b2c819 (diff) | |
download | PeerTube-9870329f6946f5fbbec9860652cee6fb12fdc2aa.tar.gz PeerTube-9870329f6946f5fbbec9860652cee6fb12fdc2aa.tar.zst PeerTube-9870329f6946f5fbbec9860652cee6fb12fdc2aa.zip |
Fix playlist autoplay
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/users/user.service.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index 5442a8453..abb4088b5 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts | |||
@@ -242,6 +242,7 @@ export class UserService { | |||
242 | 242 | ||
243 | getAnonymousUser () { | 243 | getAnonymousUser () { |
244 | let videoLanguages | 244 | let videoLanguages |
245 | |||
245 | try { | 246 | try { |
246 | videoLanguages = JSON.parse(this.localStorageService.getItem(User.KEYS.VIDEO_LANGUAGES)) | 247 | videoLanguages = JSON.parse(this.localStorageService.getItem(User.KEYS.VIDEO_LANGUAGES)) |
247 | } catch (err) { | 248 | } catch (err) { |
@@ -253,11 +254,12 @@ export class UserService { | |||
253 | // local storage keys | 254 | // local storage keys |
254 | nsfwPolicy: this.localStorageService.getItem(User.KEYS.NSFW_POLICY) as NSFWPolicyType, | 255 | nsfwPolicy: this.localStorageService.getItem(User.KEYS.NSFW_POLICY) as NSFWPolicyType, |
255 | webTorrentEnabled: this.localStorageService.getItem(User.KEYS.WEBTORRENT_ENABLED) !== 'false', | 256 | webTorrentEnabled: this.localStorageService.getItem(User.KEYS.WEBTORRENT_ENABLED) !== 'false', |
256 | autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true', | ||
257 | autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) === 'true', | ||
258 | theme: this.localStorageService.getItem(User.KEYS.THEME) || 'default', | 257 | theme: this.localStorageService.getItem(User.KEYS.THEME) || 'default', |
259 | videoLanguages, | 258 | videoLanguages, |
260 | 259 | ||
260 | autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) !== 'false', | ||
261 | autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true', | ||
262 | |||
261 | // session storage keys | 263 | // session storage keys |
262 | autoPlayNextVideo: this.sessionStorageService.getItem(User.KEYS.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO) === 'true' | 264 | autoPlayNextVideo: this.sessionStorageService.getItem(User.KEYS.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO) === 'true' |
263 | }) | 265 | }) |