From a3f4f264d6d008417f57b750e3fe1fc75313309b Mon Sep 17 00:00:00 2001 From: DominikSLK Date: Sat, 15 Jan 2022 17:16:23 +0100 Subject: [PATCH] Fixed name conflicts --- simpleytd.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/simpleytd.py b/simpleytd.py index dfece12..91ff6fb 100644 --- a/simpleytd.py +++ b/simpleytd.py @@ -55,9 +55,10 @@ def download(): window.update() ys = yt.streams.get_highest_resolution() - ys.download() - - videonameok = slugify(yt.title) + + videonameok = slugify(yt.title) + "" + + ys.download(filename=videonameok + ".mp4") #videonameok = yt.title.replace(".", "").replace("|", "").replace("/", "").replace(":", "").replace(",", "").replace("'", "").replace('"', '') if (var1.get() == 1): @@ -110,9 +111,11 @@ def download(): window.update() ys = yt.streams.get_highest_resolution() - ys.download() - - videonameok = yt.title.replace(".", "").replace("|", "").replace("/", "").replace(":", "").replace(",", "") + + videonameok = slugify(yt.title) + "" + + ys.download(filename=videonameok + ".mp4") + if (var1.get() == 1): button['text'] = "Converting..." window.update() @@ -165,7 +168,10 @@ def download(): window.update() ys = yt.streams.get_highest_resolution() - ys.download() + + videonameok = slugify(yt.title) + "" + + ys.download(filename=videonameok + ".mp4") videonameok = yt.title.replace(".", "").replace("|", "").replace("/", "").replace(":", "").replace(",", "") if (var1.get() == 1):