Skip to content

Commit

Permalink
Fixed name conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikSLK committed Jan 15, 2022
1 parent 1eb0ed0 commit a3f4f26
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions simpleytd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a3f4f26

Please sign in to comment.