From 24954d0542cad8244f078209cc7c5e35d8b0f728 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:43:18 +0000 Subject: [PATCH] the line is not too long --- yt_dlp/utils/_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index 2feb54f41b..de61e14fd1 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -1371,8 +1371,7 @@ def datetime_from_timestamp(timestamp): # Calling dt.datetime.fromtimestamp with negative timestamps throws error in Windows # Ref: https://github.com/yt-dlp/yt-dlp/issues/5185, https://github.com/python/cpython/issues/94414, # https://github.com/yt-dlp/yt-dlp/issues/6706#issuecomment-1496842642 - return (dt.datetime.fromtimestamp(0, dt.timezone.utc) - + dt.timedelta(seconds=timestamp)) + return (dt.datetime.fromtimestamp(0, dt.timezone.utc) + dt.timedelta(seconds=timestamp)) def datetime_round(dt_, precision='day'):