Reorder error check in AppleMusicDownloader

This commit is contained in:
Rafael Moraes
2025-12-10 01:08:13 -03:00
parent f67ba37d19
commit 8039c7c86f
+3 -3
View File
@@ -377,15 +377,15 @@ class AppleMusicDownloader:
download_item: DownloadItem,
) -> DownloadItem:
try:
if download_item.error:
raise download_item.error
if download_item.flat_filter_result:
download_item = await self.get_single_download_item_no_filter(
download_item.media_metadata,
download_item.playlist_metadata,
)
if download_item.error:
raise download_item.error
await self._initial_processing(download_item)
await self._download(download_item)
await self._final_processing(download_item)