diff --git a/README.md b/README.md index 68397cf..c589e9b 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,6 @@ Yes, I am not the original creator of this script and so far I have only formatt ## Known issues -- Unable to download the Adobe Acrobat installer -- When using a link to download a v5 xml file the script crashes - Postfix `macarm64` can mean `macuniversal` architecture ## Resolved issues @@ -42,9 +40,9 @@ Yes, I am not the original creator of this script and so far I have only formatt ## To Do -- [ ] Find a way to download Adobe Acrobat -- [ ] Fix the script for downloading applications via xml v5 -- [ ] Find the difference between xml v5 and v4 +- [x] Find a way to download Adobe Acrobat +- [x] Fix the script for downloading applications via xml v5 +- [x] Find the difference between xml v5 and v4 - [ ] Refactoring the script - split it into different files - [ ] Make the script fully or partially cross-platform - [ ] Make interactive examples of requests for downloading an xml file in the browser diff --git a/ccdl.py b/ccdl.py index a5df037..298af2c 100755 --- a/ccdl.py +++ b/ccdl.py @@ -441,17 +441,16 @@ def runccdl(): selectedVersion = 6 else: print('Invalid argument "{}" for {}'.format(args.urlVersion, 'URL version')) - else: - while not selectedVersion: - val = input('\nPlease enter the URL version(v4/v5/v6) for downloading products.xml, or nothing for v6: ') or 'v6' - if val == 'v4' or val == '4': - selectedVersion = 4 - elif val == 'v5' or val == '5': - selectedVersion = 5 - elif val == 'v6' or val == '6': - selectedVersion = 6 - else: - print('Invalid URL version {}, please input again'.format(val)) + while not selectedVersion: + val = input('\nPlease enter the URL version(v4/v5/v6) for downloading products.xml, or nothing for v6: ') or 'v6' + if val == 'v4' or val == '4': + selectedVersion = 4 + elif val == 'v5' or val == '5': + selectedVersion = 5 + elif val == 'v6' or val == '6': + selectedVersion = 6 + else: + print('Invalid URL version: {}'.format(val)) print('') ism1 = -1