Skip to content

Commit

Permalink
Fix some little bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sina-rostami committed Feb 26, 2021
1 parent 63a2922 commit 3a6628b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def download_meeting(values, window):
pasted_urls = [l for l in values['-LINKS-'].split("\n") if len(l) > 10]
pasted_urls = [l for l in values['-LINKS-'].split("\n") if len(l) > 0]
kntu_vc_dl.kntu_download(
values['-USERNAME-'], values['-PASSWD-'], pasted_urls)

Expand All @@ -19,7 +19,7 @@ def download_meeting(values, window):
]

window = sg.Window('Adobe Connect Meetings Downloader',
layout, size=(800, 500), grab_anywhere=True)
layout, size=(800, 520), grab_anywhere=True)

while True:
event, values = window.read()
Expand Down
6 changes: 4 additions & 2 deletions downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,7 @@ def download_other_files(self):
print('Pdfs Downloaded!')

def remove_temp_directory(self):
shutil.rmtree('./temp')
shutil.rmtree('./__pycache__')
if os.path.isdir('./temp'):
shutil.rmtree('./temp')
if os.path.isdir('./__pycache__'):
shutil.rmtree('./__pycache__')

0 comments on commit 3a6628b

Please sign in to comment.