mirror of
https://github.com/zhaarey/AppleMusicDecrypt.git
synced 2025-10-23 15:11:06 +00:00
fix: upper storefront
This commit is contained in:
@@ -165,8 +165,8 @@ class NewInteractiveShell:
|
||||
async def _get_available_device(self, storefront: str):
|
||||
devices = self.storefront_device_mapping.get(storefront)
|
||||
if not devices:
|
||||
logger.warning(f"No device is available to decrypt the specified region: {storefront}. "
|
||||
f"Use storefront {self.config.region.defaultStorefront} to decrypt")
|
||||
logger.warning(f"No device is available to decrypt the specified region: {storefront.upper()}. "
|
||||
f"Use storefront {self.config.region.defaultStorefront.upper()} to decrypt")
|
||||
storefront = self.config.region.defaultStorefront
|
||||
devices = self.storefront_device_mapping.get(storefront)
|
||||
available_devices = [device for device in devices if not device.decryptLock.locked()]
|
||||
|
||||
@@ -43,7 +43,7 @@ async def rip_song(song: Song, auth_params: GlobalAuthParams, codec: str, config
|
||||
return
|
||||
await song_metadata.get_cover(config.download.coverFormat, config.download.coverSize)
|
||||
if song_data.attributes.hasTimeSyncedLyrics:
|
||||
if song.storefront != auth_params.storefront:
|
||||
if song.storefront.upper() != auth_params.storefront.upper():
|
||||
logger.warning(f"No account is available for getting lyrics of storefront {song.storefront.upper()}. "
|
||||
f"Use storefront {auth_params.storefront.upper()} to get lyrics")
|
||||
lyrics = await get_song_lyrics(song.id, auth_params.storefront, auth_params.accountAccessToken,
|
||||
|
||||
Reference in New Issue
Block a user