mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
refactor get_playlist_file_path
This commit is contained in:
parent
16734b8b64
commit
7b8875250c
@ -266,19 +266,17 @@ class Downloader:
|
|||||||
self,
|
self,
|
||||||
tags: dict,
|
tags: dict,
|
||||||
):
|
):
|
||||||
template_folder = self.template_file_playlist.split("/")
|
|
||||||
template_file = self.template_file_playlist.split("/")
|
template_file = self.template_file_playlist.split("/")
|
||||||
template_final = template_folder + template_file
|
return Path(
|
||||||
return self.output_path.joinpath(
|
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_file[0:-1]
|
||||||
]
|
],
|
||||||
).joinpath(
|
|
||||||
*[
|
*[
|
||||||
self.get_sanitized_string(template_final[-1].format(**tags), False)
|
self.get_sanitized_string(template_file[-1].format(**tags), False)
|
||||||
+ ".m3u8"
|
+ ".m3u8"
|
||||||
]
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
def update_playlist_file(
|
def update_playlist_file(
|
||||||
|
Loading…
Reference in New Issue
Block a user