mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
adjust m3u8 playlist log message
This commit is contained in:
parent
07c847a788
commit
6c3dff566b
12
gamdl/cli.py
12
gamdl/cli.py
@ -478,6 +478,7 @@ def main(
|
|||||||
):
|
):
|
||||||
queue_progress = f"Track {download_index}/{len(download_queue_tracks_metadata)} from URL {url_index}/{len(urls)}"
|
queue_progress = f"Track {download_index}/{len(download_queue_tracks_metadata)} from URL {url_index}/{len(urls)}"
|
||||||
try:
|
try:
|
||||||
|
remuxed_path = None
|
||||||
if download_queue.playlist_attributes:
|
if download_queue.playlist_attributes:
|
||||||
playlist_track = download_index
|
playlist_track = download_index
|
||||||
else:
|
else:
|
||||||
@ -741,13 +742,14 @@ def main(
|
|||||||
else:
|
else:
|
||||||
logger.debug(f'Saving cover to "{cover_path}"')
|
logger.debug(f'Saving cover to "{cover_path}"')
|
||||||
downloader.save_cover(cover_path, cover_url)
|
downloader.save_cover(cover_path, cover_url)
|
||||||
logger.debug("Applying tags")
|
if remuxed_path:
|
||||||
downloader.apply_tags(remuxed_path, tags, cover_url)
|
logger.debug("Applying tags")
|
||||||
logger.debug(f'Moving to "{final_path}"')
|
downloader.apply_tags(remuxed_path, tags, cover_url)
|
||||||
downloader.move_to_output_path(remuxed_path, final_path)
|
logger.debug(f'Moving to "{final_path}"')
|
||||||
|
downloader.move_to_output_path(remuxed_path, final_path)
|
||||||
if save_playlist and download_queue.playlist_attributes:
|
if save_playlist and download_queue.playlist_attributes:
|
||||||
playlist_file_path = downloader.get_playlist_file_path(tags)
|
playlist_file_path = downloader.get_playlist_file_path(tags)
|
||||||
logger.debug("Saving M3U8 playlist")
|
logger.debug("Updating M3U8 playlist")
|
||||||
downloader.update_playlist_file(playlist_file_path, final_path)
|
downloader.update_playlist_file(playlist_file_path, final_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_count += 1
|
error_count += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user