mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
Update gamdl.py
This commit is contained in:
parent
b98b19e657
commit
2f6191fc42
6
gamdl.py
6
gamdl.py
@ -92,6 +92,8 @@ class Gamdl:
|
||||
'alt_track_id': response['attributes']['url'].split('/')[-1],
|
||||
'title': response['attributes']['name'],
|
||||
})
|
||||
if not download_queue:
|
||||
raise Exception()
|
||||
return download_queue
|
||||
|
||||
|
||||
@ -502,6 +504,6 @@ if __name__ == '__main__':
|
||||
print(f'* Failed to dowload "{download_queue[j]["title"]}" ({j + 1} of {len(download_queue)}).')
|
||||
if args.print_exception:
|
||||
traceback.print_exc()
|
||||
if not args.skip_cleanup and os.path.exists(args.temp_path):
|
||||
shutil.rmtree(args.temp_path)
|
||||
if not args.skip_cleanup and os.path.exists(Path(args.temp_path)):
|
||||
shutil.rmtree(Path(args.temp_path))
|
||||
print(f'All done ({error_count} error(s)).')
|
||||
|
Loading…
Reference in New Issue
Block a user