diff options
author | phiresky <[email protected]> | 2015-03-04 22:33:56 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2015-03-14 19:46:22 +0100 |
commit | e7db87f7000143341505cff812d1fa0371ac901e (patch) | |
tree | bf7990d4310aa157bade02627527763d654ad0b1 /youtube_dl/__init__.py | |
parent | 082b1155a36dc9b51424151f80860e52ee30b55e (diff) | |
download | youtube-dl-e7db87f7000143341505cff812d1fa0371ac901e.tar.gz youtube-dl-e7db87f7000143341505cff812d1fa0371ac901e.zip |
Add metadata from title parser
(Closes #5125)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index a08ddd670..852b2fc3d 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -213,6 +213,11 @@ def _real_main(argv=None): # PostProcessors postprocessors = [] # Add the metadata pp first, the other pps will copy it + if opts.metafromtitle: + postprocessors.append({ + 'key': 'MetadataFromTitle', + 'titleformat': opts.metafromtitle + }) if opts.addmetadata: postprocessors.append({'key': 'FFmpegMetadata'}) if opts.extractaudio: |