mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
Update gamdl.py
This commit is contained in:
parent
d56628bc8c
commit
7b7bc40912
6
gamdl.py
6
gamdl.py
@ -59,8 +59,8 @@ class Gamdl:
|
||||
"Sec-Fetch-Site": "same-site",
|
||||
'origin': 'https://beta.music.apple.com'
|
||||
})
|
||||
self.country = cookies['itua']
|
||||
self.storefront = getattr(storefront_ids, self.country)
|
||||
self.country = cookies['itua'].lower()
|
||||
self.storefront = getattr(storefront_ids, self.country.upper())
|
||||
|
||||
|
||||
def get_download_queue(self, url):
|
||||
@ -455,6 +455,8 @@ if __name__ == '__main__':
|
||||
exit(0)
|
||||
except:
|
||||
print(f'* Failed to check URL ({i + 1} of {len(args.url)}).')
|
||||
if args.print_exception:
|
||||
traceback.print_exc()
|
||||
error_count += 1
|
||||
continue
|
||||
for j in range(len(download_queue)):
|
||||
|
Loading…
Reference in New Issue
Block a user