1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-02 10:29:28 +00:00

[utils] timeconvert() should return int

This commit is contained in:
dirkf 2022-02-27 04:54:24 +00:00
parent 1cd4bb0d82
commit 81d6b10f48

View file

@ -2074,7 +2074,7 @@ def timeconvert(timestr):
timetuple = email.utils.parsedate_tz(timestr)
if timetuple is not None:
timestamp = email.utils.mktime_tz(timetuple)
return timestamp
return int(timestamp) if timestamp is not None else timestamp
def sanitize_filename(s, restricted=False, is_id=False):