From eb97b83ea236b0129133e62e8cf0f23d43709e14 Mon Sep 17 00:00:00 2001 From: Connor Mason Date: Sun, 9 Feb 2025 11:22:44 -0800 Subject: [PATCH] Just warn on inabliity to embed thumbnail --- youtube_dl/postprocessor/embedthumbnail.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index b6c60e127..2ab32f167 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals +import logging import os import subprocess @@ -21,6 +22,9 @@ from ..utils import ( from ..compat import compat_open as open +logger = logging.getLogger('soundcloudutil.downloader') + + class EmbedThumbnailPPError(PostProcessingError): pass @@ -128,6 +132,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) else: - raise EmbedThumbnailPPError('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.') + logger.warning('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.') + # raise EmbedThumbnailPPError('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.') return [], info