We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef2d134 + 32b3f2c commit 8c4a702Copy full SHA for 8c4a702
scripts/Sound.py
@@ -34,7 +34,7 @@ def download_file(name: str, hash: str):
34
nameCheck = re.compile(f'{realFileName.split(".")[0]}.+?m4a')
35
checked = check_file(nameCheck, dirName)
36
37
- if not os.path.isfile(name) and checked is None:
+ if not os.path.isfile(name) and checked is False:
38
print(f'Downloading {name}...')
39
r = requests.get(f'{Constants.SOUND_URL}/{hash[:2]}/{hash}').content
40
with open(name, 'wb') as f:
@@ -129,4 +129,4 @@ def sound() -> None:
129
130
131
if __name__ == '__main__':
132
- sound()
+ sound()
0 commit comments