fix: upper storefront

pull/8/head
WorldObservationLog 6 months ago
parent c373931fab
commit 9e26277cdf
  1. 4
      src/cmd.py
  2. 2
      src/rip.py

@ -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,

Loading…
Cancel
Save