Skip to content

Commit

Permalink
fdsafdsafdsafdsafsdfsdafdsafdsafdsafdsafdsafdsafdsafdsafdsafdsafdsafd…
Browse files Browse the repository at this point in the history
…safdsafdsafdsafdsafdsafdsafdsafdsa
  • Loading branch information
coopeeo authored Mar 26, 2024
1 parent fe235d4 commit 760c916
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/DOWNLOAD_FILE.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def save(clickName, folderName, ee):
match = re.search(r'\s*?### Add Pack\s*?(\S+)\s*?', issue_body)
match3 = re.search(r'\s*?### Type of Click Sound\s*?(\S+)\s*?', issue_body)
match2 = re.search(r'### Click Sound Name\s\s(.+)', issue_body)
print(match)
print(match3)
print(match2)
time.sleep(2)
if match and match2 and match3:
clickName = match2.group(1)
Expand All @@ -42,8 +45,7 @@ def save(clickName, folderName, ee):
click_url = matchfound[(matchfound.find("(") + 1):-1]
typee = match3.group(1)
if typee != "Useful" and typee != "Meme":
print('Click Type must be \"Useful\" or \"Release\"', file=sys.stderr)
sys.exit(2)
fail('Click Type must be \"Useful\" or \"Release\"')
save(clickName, folderName, typee)
urllib.request.urlretrieve(click_url, 'test/' + folderName + '.zip')
else:
Expand Down

0 comments on commit 760c916

Please sign in to comment.