X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Foptions.py;h=4e6e47d6fdc430f4071c1470f25a1b7377ad7845;hb=2ed849eccff40436212886e56d183d8b326766e1;hp=eefe008d50422042d80ca0ae88fec0c2d794c392;hpb=dcca5819675df1e9d9a1caf00af0f98bb2ce511c;p=youtube-dl diff --git a/youtube_dl/options.py b/youtube_dl/options.py index eefe008d5..4e6e47d6f 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -735,6 +735,15 @@ def parseOpts(overrideArguments=None): '--add-metadata', action='store_true', dest='addmetadata', default=False, help='write metadata to the video file') + postproc.add_option( + '--metadata-from-title', + metavar='FORMAT', dest='metafromtitle', + help='parse additional metadata like song title / artist from the video title. ' + 'The format syntax is the same as --output, ' + 'the parsed parameters replace existing values. ' + 'Additional templates: %(album), %(artist). ' + 'Example: --metadata-from-title "%(artist)s - %(title)s" matches a title like ' + '"Coldplay - Paradise"') postproc.add_option( '--xattrs', action='store_true', dest='xattrs', default=False,