mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-18 17:30:10 +09:00
[utils] timeconvert() should return int
This commit is contained in:
parent
1cd4bb0d82
commit
81d6b10f48
@ -2074,7 +2074,7 @@ def timeconvert(timestr):
|
|||||||
timetuple = email.utils.parsedate_tz(timestr)
|
timetuple = email.utils.parsedate_tz(timestr)
|
||||||
if timetuple is not None:
|
if timetuple is not None:
|
||||||
timestamp = email.utils.mktime_tz(timetuple)
|
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):
|
def sanitize_filename(s, restricted=False, is_id=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user