projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765ac26
)
[postprocessor/embedthumbnail] Allow mkv to embed thumbnails
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 20 Feb 2016 19:25:44 +0000
(
03:25
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 20 Feb 2016 19:32:03 +0000
(
03:32
+0800)
Fixes #6046
youtube_dl/postprocessor/embedthumbnail.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/embedthumbnail.py
b/youtube_dl/postprocessor/embedthumbnail.py
index e19dbf73d5fe36c602d9ffb83cd2d02ab39cb5e1..3bad5a266b6d51aaf0c92224a94986957da230f2 100644
(file)
--- a/
youtube_dl/postprocessor/embedthumbnail.py
+++ b/
youtube_dl/postprocessor/embedthumbnail.py
@@
-40,7
+40,7
@@
class EmbedThumbnailPP(FFmpegPostProcessor):
'Skipping embedding the thumbnail because the file is missing.')
return [], info
- if info['ext']
== 'mp3'
:
+ if info['ext']
in ('mp3', 'mkv')
:
options = [
'-c', 'copy', '-map', '0', '-map', '1',
'-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']