1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-08 14:22:50 +08:00

Add URL metadata to mp4 container (closes #17029), remove dublicate field

This commit is contained in:
megapro17 2020-05-22 01:01:20 +03:00
parent 8f841fafcd
commit 522acabfe6

View File

@ -449,7 +449,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
add('title', ('track', 'title'))
add('date', 'upload_date')
add(('description', 'comment'), 'description')
add('description')
add('purl', 'webpage_url')
add('track', 'track_number')
add('artist', ('artist', 'creator', 'uploader', 'uploader_id'))
@ -458,6 +458,9 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
add('album_artist')
add('disc', 'disc_number')
if info['filepath'][-3:] == 'mp4':
add('Network', 'webpage_url')
if not metadata:
self._downloader.to_screen('[ffmpeg] There isn\'t any metadata to add')
return [], info