]> jfr.im git - yt-dlp.git/commitdiff
Embed video URL metadata inside MP4 (#173)
authorpukkandan <redacted>
Fri, 19 Mar 2021 12:12:29 +0000 (17:42 +0530)
committerpukkandan <redacted>
Sat, 20 Mar 2021 04:04:52 +0000 (09:34 +0530)
`mp4` has `comment` and `synopsis`; the synopsis is expected to have the long description
So we save the `webpage_url` to `comment` and `description` to `synopsis`

Related: https://github.com/ytdl-org/youtube-dl/issues/28478

Co-authored by: Damiano Amatruda <redacted>

yt_dlp/postprocessor/ffmpeg.py

index b0b05f4fca53ffd6506ca9e58fd8ccfaf5e4c1c3..ff06a5c311d7f3d0f3eba5ee550a8aa06af1e784 100644 (file)
@@ -550,8 +550,8 @@ def add(meta_list, info_list=None):
 
         add('title', ('track', 'title'))
         add('date', 'upload_date')
-        add(('description', 'comment'), 'description')
-        add('purl', 'webpage_url')
+        add(('description', 'synopsis'), 'description')
+        add(('purl', 'comment'), 'webpage_url')
         add('track', 'track_number')
         add('artist', ('artist', 'creator', 'uploader', 'uploader_id'))
         add('genre')