Fix m3u8 dict to second

This commit is contained in:
Lovi-0 2024-07-07 16:05:34 +02:00
parent 586e862aa6
commit 7ce51745a0

View File

@ -472,8 +472,10 @@ class HLS_Downloader():
""" """
def dict_to_seconds(d): def dict_to_seconds(d):
if d != None:
return d['h'] * 3600 + d['m'] * 60 + d['s'] return d['h'] * 3600 + d['m'] * 60 + d['s']
else:
1 # Default false
# Check if file to rename exist # Check if file to rename exist
logging.info(f"Check if end file converted exist: {out_path}") logging.info(f"Check if end file converted exist: {out_path}")