mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
refactor get_final_path
This commit is contained in:
parent
63ba4b0824
commit
475bddb5f7
@ -398,14 +398,16 @@ class Downloader:
|
|||||||
template_folder = self.template_folder_no_album.split("/")
|
template_folder = self.template_folder_no_album.split("/")
|
||||||
template_file = self.template_file_no_album.split("/")
|
template_file = self.template_file_no_album.split("/")
|
||||||
template_final = template_folder + template_file
|
template_final = template_folder + template_file
|
||||||
return self.output_path.joinpath(
|
return Path(
|
||||||
|
self.output_path,
|
||||||
*[
|
*[
|
||||||
self.get_sanitized_string(i.format(**tags), True)
|
self.get_sanitized_string(i.format(**tags), True)
|
||||||
for i in template_final[0:-1]
|
for i in template_final[0:-1]
|
||||||
]
|
],
|
||||||
).joinpath(
|
(
|
||||||
self.get_sanitized_string(template_final[-1].format(**tags), False)
|
self.get_sanitized_string(template_final[-1].format(**tags), False)
|
||||||
+ file_extension
|
+ file_extension
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_cover_file_extension(self, cover_url: str) -> str:
|
def get_cover_file_extension(self, cover_url: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user