From be0d42ce7a0b2fec45df19b5f59c3e003ca324ec Mon Sep 17 00:00:00 2001
From: Andrew <66430340+aandrew-me@users.noreply.github.com>
Date: Mon, 16 Jan 2023 11:54:45 +0600
Subject: [PATCH] Fix playlist not downloading right quality
---
 flatpak/me.aandrew.ytdownloader.metainfo.xml | 1 +
 package.json                                 | 2 +-
 src/common.js                                | 2 +-
 src/playlist.js                              | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/flatpak/me.aandrew.ytdownloader.metainfo.xml b/flatpak/me.aandrew.ytdownloader.metainfo.xml
index 8db0cc6..7c1d7ea 100644
--- a/flatpak/me.aandrew.ytdownloader.metainfo.xml
+++ b/flatpak/me.aandrew.ytdownloader.metainfo.xml
@@ -33,6 +33,7 @@
   
  
  
+  
   
   
   
diff --git a/package.json b/package.json
index 470617b..c197fb9 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
 		"yt-dlp-wrap-plus": "^2.3.16"
 	},
 	"name": "ytdownloader",
-	"version": "3.10.2",
+	"version": "3.10.3",
 	"main": "main.js",
 	"scripts": {
 		"start": "electron .",
diff --git a/src/common.js b/src/common.js
index d0d7269..484b92b 100644
--- a/src/common.js
+++ b/src/common.js
@@ -65,7 +65,7 @@ function toggle() {
 		circle.style.left = "0px";
 
 		root.style.setProperty("--background", "whitesmoke");
-		root.style.setProperty("--text", "rgb(45, 45, 45)");
+		root.style.setProperty("--text", "rgb(255, 255, 255)");
 		root.style.setProperty("--box-main", "rgb(174 249 224)");
 		root.style.setProperty("--box-toggle", "rgb(108, 231, 190)");
 		root.style.setProperty("--theme-toggle", "rgb(147, 174, 185)");
diff --git a/src/playlist.js b/src/playlist.js
index 178a9a9..d15fa28 100644
--- a/src/playlist.js
+++ b/src/playlist.js
@@ -86,7 +86,7 @@ function download(type) {
 			format = ""
 		}
 		else {
-			format = `-f "mp4[height<=${quality}]+m4a/mp4[height<=${quality}]/bv[height<=${quality}]+ba/best[height<=${quality}]/best"`;
+			format = `-f "bv*[height<=${quality}]+ba/best"`;
 		}
 	} else {
 		format = getId("audioSelect").value;