From 6f45cf5f7bceeb2c4b51017d7aa6e9a8a559c59c Mon Sep 17 00:00:00 2001 From: "J. Randall Owens" Date: Mon, 13 Nov 2017 17:37:19 +0000 Subject: [PATCH] fix os.utime() syntax modified: youtube_dl/postprocessor/embedthumbnail.py --- youtube_dl/postprocessor/embedthumbnail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index a6165cf0c..037a22e94 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -55,7 +55,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): os.remove(encodeFilename(thumbnail_filename)) os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) - os.utime(encodeFilename(filename, timestamp)) + os.utime(encodeFilename(filename), (timestamp, timestamp)) elif info['ext'] in ['m4a', 'mp4']: if not check_executable('AtomicParsley', ['-v']): @@ -91,7 +91,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): else: os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) - os.utime(encodeFilename(filename, timestamp)) + os.utime(encodeFilename(filename), (timestamp, timestamp)) else: raise EmbedThumbnailPPError('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.')