Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
coopeeo authored Mar 25, 2024
1 parent 646a56a commit 02d1a53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def sanitize_name(name):
issue_body = sys.argv[3]


if '### Click Sound Name' not in issue_body or "### Add Pack" not in issue_body:
if 'Click Sound Name' not in issue_body or "Add Pack" not in issue_body:
print('Not a valid entry', file=sys.stderr)
sys.exit(2)

Expand All @@ -38,6 +38,10 @@ def sanitize_name(name):
folderName = sanitize_name(clickName)
matchfound = match.group(1)
click_url = matchfound[mathfound.find("("):-1]
print(clickName)
print(folderName)
print(matchfound)
print(click_url)
urllib.request.urlretrieve(click_url, 'test/' + folderName + '.zip')
else:
fail(f'Could not find the zip link')
Expand Down

0 comments on commit 02d1a53

Please sign in to comment.