projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
61ca9a8
)
Merge pull request #4745 from BitLooter/master
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 23 Jan 2015 00:22:19 +0000
(
01:22
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 23 Jan 2015 00:22:19 +0000
(
01:22
+0100)
Embed description and URL as MP4 tags
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index 5b0ff32b14747d91b1c5c7223fa4efaae7aac574..faccdc43dfb4e0adf21bdff62149a861521f8fed 100644
(file)
--- a/
youtube_dl/postprocessor/ffmpeg.py
+++ b/
youtube_dl/postprocessor/ffmpeg.py
@@
-509,6
+509,10
@@
class FFmpegMetadataPP(FFmpegPostProcessor):
metadata['artist'] = info['uploader']
elif info.get('uploader_id') is not None:
metadata['artist'] = info['uploader_id']
+ if info.get('description') is not None:
+ metadata['description'] = info['description']
+ if info.get('webpage_url') is not None:
+ metadata['comment'] = info['webpage_url']
if not metadata:
self._downloader.to_screen('[ffmpeg] There isn\'t any metadata to add')