浏览代码

Merge pull request #4745 from BitLooter/master

Embed description and URL as MP4 tags
Philipp Hagemeister 10 年之前
父节点
当前提交
b59c17e543
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      youtube_dl/postprocessor/ffmpeg.py

+ 4 - 0
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')