From c4023a1d8d190b93ddfd488474e5c691b7f183c6 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Mon, 19 Aug 2019 02:12:47 -0500
Subject: [PATCH] ptgdp: Give the user big red text if something fucks off

---
 ptgdp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ptgdp b/ptgdp
index 32096cb..643a7d7 100755
--- a/ptgdp
+++ b/ptgdp
@@ -375,6 +375,9 @@ playlist() {
 			"The playlist in its entirety could not be downloaded. Ensure that youtube-dl is up to date, you have a valid internet connection, and your search queries pull up results" \
 			normal dialog-error 10000
 	elif [ -z "$_optdryrun" ]; then
+		if ! [ "$dlfailure" = "0" ]; then
+			error "Some songs failed to download" 0
+		fi
 		if [ -z "$_optdownloadonly" ]; then
 			notify "Finished downloading playlist" \
 				"The playlist has been downloaded and will be added to mpd shortly"