summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2015-02-03 00:16:45 +0100
committerPhilipp Hagemeister <[email protected]>2015-02-03 00:16:45 +0100
commit2cf0ecac7b11e68a94990ce7c0e4a661cc2d8c74 (patch)
treec039ac600e77caf9c01068932778db1e0093e9c4
parentd200b11c7ea34138d9b8a778fd2dd9226308b48f (diff)
downloadyoutube-dl-2cf0ecac7b11e68a94990ce7c0e4a661cc2d8c74.tar.gz
youtube-dl-2cf0ecac7b11e68a94990ce7c0e4a661cc2d8c74.zip
[ffmpeg] --add-metadata: Set comment and purl fields (Fixes #4847)
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 855d1e6db..4a4422c5a 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -511,8 +511,9 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
metadata['artist'] = info['uploader_id']
if info.get('description') is not None:
metadata['description'] = info['description']
+ metadata['comment'] = info['description']
if info.get('webpage_url') is not None:
- metadata['comment'] = info['webpage_url']
+ metadata['purl'] = info['webpage_url']
if not metadata:
self._downloader.to_screen('[ffmpeg] There isn\'t any metadata to add')