Standardize get_cover_path method signature and logic

This commit is contained in:
Rafael Moraes
2025-10-23 13:56:29 -03:00
parent 750fc5b9de
commit 243b3ea45c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class AppleMusicMusicVideoDownloader:
final_path: str,
file_extension: str,
) -> str:
return str(Path(final_path).parent / ("Cover" + file_extension))
return str(Path(final_path).with_suffix(file_extension))
async def get_download_item(
self,
@@ -23,8 +23,8 @@ class AppleMusicUploadedVideoDownloader:
self.downloader.interface,
)
def get_cover_path(self, final_path: str, cover_file_extension: str) -> str:
return str(Path(final_path).with_suffix(cover_file_extension))
def get_cover_path(self, final_path: str, file_extension: str) -> str:
return str(Path(final_path).with_suffix(file_extension))
async def get_download_item(
self,