projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e59539
)
[postprocessor/embedthumbnail] Use run_ffmpeg_multiple_files
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 13 May 2015 18:35:28 +0000
(
02:35
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 13 May 2015 18:35:28 +0000
(
02:35
+0800)
youtube_dl/postprocessor/embedthumbnail.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/embedthumbnail.py
b/youtube_dl/postprocessor/embedthumbnail.py
index 95c52f65f1885dada7d75e24dba40ff392f8eea0..4e08c2709f13f8b551a447e665ea8e6737e17372 100644
(file)
--- a/
youtube_dl/postprocessor/embedthumbnail.py
+++ b/
youtube_dl/postprocessor/embedthumbnail.py
@@
-36,12
+36,12
@@
class EmbedThumbnailPP(FFmpegPostProcessor):
if info['ext'] == 'mp3':
options = [
if info['ext'] == 'mp3':
options = [
- '-
i', thumbnail_filename, '-
c', 'copy', '-map', '0', '-map', '1',
+ '-c', 'copy', '-map', '0', '-map', '1',
'-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']
self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename)
'-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']
self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename)
- self.run_ffmpeg
(filename
, temp_filename, options)
+ self.run_ffmpeg
_multiple_files([filename, thumbnail_filename]
, temp_filename, options)
if not self._already_have_thumbnail:
os.remove(encodeFilename(thumbnail_filename))
if not self._already_have_thumbnail:
os.remove(encodeFilename(thumbnail_filename))