From 6fb38337d623bbe737b8ba64b119a7d732bb3bcc Mon Sep 17 00:00:00 2001 From: shin Date: Thu, 26 Dec 2019 13:18:13 +0530 Subject: [PATCH] Followed the code-convention of 'youtube-dl' --- youtube_dl/postprocessor/embedthumbnail.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index de6a645e2..1c2f1150a 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -63,8 +63,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): meta.add(APIC( data= open(thumbnail_filename, 'rb').read(), mime= 'image/'+imghdr.what(thumbnail_filename), - type= PictureType.COVER_FRONT - )) + type= PictureType.COVER_FRONT)) meta.save() # Save the changes to file, does in-place replacement. self._downloader.to_screen('[mutagen.id3] Merged Thumbnail into "%s"' % filename) @@ -84,8 +83,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): data= open(thumbnail_filename, 'rb').read(), imageformat= MP4Cover.FORMAT_JPEG if \ imghdr.what(thumbnail_filename) == 'jpeg' \ - else MP4Cover.FORMAT_PNG - )] + else MP4Cover.FORMAT_PNG)] meta.save() self._downloader.to_screen('[mutagen.mp4] Merged thumbnail to "%s"' % filename)