mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 12:15:18 +03:00
Standardize get_cover_path method signature and logic
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user