Skip to content

Commit

Permalink
Updated README and fixed a minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Antibioticss committed Jun 11, 2023
1 parent d502478 commit 5567da5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
21 changes: 10 additions & 11 deletions ccdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5567da5

Please sign in to comment.