Skip to content

Commit

Permalink
Update YoutubeDLGui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jessielw committed Mar 6, 2021
1 parent 9365387 commit 74c964e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Packages/YoutubeDLGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ def root_exit_function(): # Asks if the user is ready to exit

ffmpeg = config['ffmpeg_path']['path']
youtube_dl_cli = config['youtubedl_path']['path']
# if shutil.which('youtube-dl') != None: # Checks if youtube-dl is located on windows PATH
# youtube_dl_cli = '"' + str(pathlib.Path(shutil.which('youtube-dl'))) + '"'
# elif shutil.which('youtube-dl') == None:
# youtube_dl_cli = '"' + str(pathlib.Path("Apps/youtube-dl/youtube-dl.exe")) + '"'

# --------------------------------------------------------------- Bundled Apps

# Updates youtube-dl.exe -------------------------------------
Expand Down Expand Up @@ -229,7 +224,7 @@ def file_save():
save_entry.config(state=NORMAL) #
save_entry.delete(0, END) # This function clears entry box in order to add new link to entry box
save_entry.config(state=DISABLED) #
VideoOutput = filedialog.askdirectory() # Pop up window to choose a save directory location
VideoOutput = filedialog.askdirectory(parent=root) # Pop up window to choose a save directory location
if VideoOutput:
save_for_entry = '"' + VideoOutput + '/"' # Completes save directory and adds quotes
save_entry.config(state=NORMAL) #
Expand Down

0 comments on commit 74c964e

Please sign in to comment.