aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorphiresky <[email protected]>2015-03-04 22:33:56 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2015-03-14 19:46:22 +0100
commite7db87f7000143341505cff812d1fa0371ac901e (patch)
treebf7990d4310aa157bade02627527763d654ad0b1 /youtube_dl/__init__.py
parent082b1155a36dc9b51424151f80860e52ee30b55e (diff)
downloadyoutube-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__.py5
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: