Unknown format code 'd' for object of type 'float' 오류 수정
This commit is contained in:
@@ -311,11 +311,11 @@ class LogicNormal(object):
|
||||
)
|
||||
data[
|
||||
"percent"
|
||||
] = f"{float(youtube_dl.progress_hooks['downloaded_bytes']) / float(youtube_dl.progress_hooks['total_bytes']) * 100:.2f}"
|
||||
] = f"{(float(youtube_dl.progress_hooks['downloaded_bytes']) / float(youtube_dl.progress_hooks['total_bytes']) * 100):.2f}"
|
||||
data["start_time"] = youtube_dl.start_time.strftime("%m-%d %H:%M:%S")
|
||||
data[
|
||||
"download_time"
|
||||
] = f"{download_time.seconds / 60:02f}:{download_time.seconds % 60:02f}"
|
||||
] = f"{int(download_time.seconds / 60):02d}:{int(download_time.seconds % 60):02d}"
|
||||
return data
|
||||
except Exception as error:
|
||||
logger.error("Exception:%s", error)
|
||||
|
||||
Reference in New Issue
Block a user