mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 22:35:21 +00: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)
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user