Move dl-only logic to playlist()
This commit is contained in:
		
							
								
								
									
										14
									
								
								ptgdp
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								ptgdp
									
									
									
									
									
								
							@@ -249,13 +249,11 @@ backend-execqueue() {
 | 
			
		||||
			fi
 | 
			
		||||
			;;
 | 
			
		||||
	esac
 | 
			
		||||
	if [ -z "$_optdlonly" ]; then
 | 
			
		||||
		for song in "${_queue[@]}"; do
 | 
			
		||||
			backend-enqueue "$song"
 | 
			
		||||
		done
 | 
			
		||||
		if [ "$_optautoplay" != "0" ]; then
 | 
			
		||||
			backend-play
 | 
			
		||||
		fi
 | 
			
		||||
	for song in "${_queue[@]}"; do
 | 
			
		||||
		backend-enqueue "$song"
 | 
			
		||||
	done
 | 
			
		||||
	if [ "$_optautoplay" != "0" ]; then
 | 
			
		||||
		backend-play
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -312,7 +310,7 @@ playlist() {
 | 
			
		||||
		for file in "${_queue[@]}"; do
 | 
			
		||||
			printf "$file\\n"
 | 
			
		||||
		done
 | 
			
		||||
	else
 | 
			
		||||
	elif [ -z "$_optdlonly" ]; then
 | 
			
		||||
		backend-execqueue
 | 
			
		||||
	fi
 | 
			
		||||
	log "Finished: $dlcache cached, $dlsuccess downloaded, $dlerr failed"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user