| 
														
															@@ -805,6 +805,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			localPaused: state => state.localPaused, 
														 | 
														
														 | 
														
															 			localPaused: state => state.localPaused, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			noSong: state => state.noSong, 
														 | 
														
														 | 
														
															 			noSong: state => state.noSong, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			autoRequest: state => state.autoRequest, 
														 | 
														
														 | 
														
															 			autoRequest: state => state.autoRequest, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			autoRequestLock: state => state.autoRequestLock, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			autofill: state => state.autofill, 
														 | 
														
														 | 
														
															 			autofill: state => state.autofill, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			blacklist: state => state.blacklist 
														 | 
														
														 | 
														
															 			blacklist: state => state.blacklist 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}), 
														 | 
														
														 | 
														
															 		}), 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -819,6 +820,11 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			socket: "websockets/getSocket" 
														 | 
														
														 | 
														
															 			socket: "websockets/getSocket" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}) 
														 | 
														
														 | 
														
															 		}) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	watch: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		"autoRequest.length": function autoRequestWatcher() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.autoRequestSong(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	async mounted() { 
														 | 
														
														 | 
														
															 	async mounted() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.editSongModalWatcher = this.$store.watch( 
														 | 
														
														 | 
														
															 		this.editSongModalWatcher = this.$store.watch( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			state => 
														 | 
														
														 | 
														
															 			state => 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -961,6 +967,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.timePaused = res.data.timePaused; 
														 | 
														
														 | 
														
															 			this.timePaused = res.data.timePaused; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.updateStationPaused(false); 
														 | 
														
														 | 
														
															 			this.updateStationPaused(false); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			if (!this.localPaused) this.resumeLocalPlayer(); 
														 | 
														
														 | 
														
															 			if (!this.localPaused) this.resumeLocalPlayer(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.autoRequestSong(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}); 
														 | 
														
														 | 
														
															 		}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.socket.on("event:station.deleted", () => { 
														 | 
														
														 | 
														
															 		this.socket.on("event:station.deleted", () => { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1018,6 +1026,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					: null; 
														 | 
														
														 | 
														
															 					: null; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.updateNextSong(nextSong); 
														 | 
														
														 | 
														
															 			this.updateNextSong(nextSong); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.autoRequestSong(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}); 
														 | 
														
														 | 
														
															 		}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.socket.on("event:station.queue.song.repositioned", res => { 
														 | 
														
														 | 
														
															 		this.socket.on("event:station.queue.song.repositioned", res => { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1166,6 +1176,50 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				); 
														 | 
														
														 | 
														
															 				); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} else ms.removeMediaSessionData(0); 
														 | 
														
														 | 
														
															 			} else ms.removeMediaSessionData(0); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		autoRequestSong() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				!this.autoRequestLock && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.songsList.length < 50 && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.currentUserQueueSongs < 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.station.requests.limit * 0.5 && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.autoRequest.length > 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				const selectedPlaylist = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.autoRequest[ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						Math.floor(Math.random() * this.autoRequest.length) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				if (selectedPlaylist._id && selectedPlaylist.songs.length > 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					const selectedSong = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						selectedPlaylist.songs[ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							Math.floor( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+								Math.random() * selectedPlaylist.songs.length 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (selectedSong.youtubeId) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.updateAutoRequestLock(true); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.socket.dispatch( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							"stations.addToQueue", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							this.station._id, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							selectedSong.youtubeId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							data => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+								this.updateAutoRequestLock(false); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+								if (data.status !== "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+									setTimeout( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+										() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+											this.autoRequestSong(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+										}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+										data.message === 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+											"That song is already in the queue." 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+											? 5000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+											: 1000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+									); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+								} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		removeFromQueue(youtubeId) { 
														 | 
														
														 | 
														
															 		removeFromQueue(youtubeId) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			window.socket.dispatch( 
														 | 
														
														 | 
														
															 			window.socket.dispatch( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				"stations.removeFromQueue", 
														 | 
														
														 | 
														
															 				"stations.removeFromQueue", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -2130,7 +2184,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			"setBlacklist", 
														 | 
														
														 | 
														
															 			"setBlacklist", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			"updateCurrentSongRatings", 
														 | 
														
														 | 
														
															 			"updateCurrentSongRatings", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			"updateOwnCurrentSongRatings", 
														 | 
														
														 | 
														
															 			"updateOwnCurrentSongRatings", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			"updateCurrentSongSkipVotes" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			"updateCurrentSongSkipVotes", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			"updateAutoRequestLock" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		]), 
														 | 
														
														 | 
														
															 		]), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		...mapActions("modals/editSong", ["stopVideo"]) 
														 | 
														
														 | 
														
															 		...mapActions("modals/editSong", ["stopVideo"]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 |