Add metadata from title parser

(Closes #5125)
This commit is contained in:
phiresky
2015-03-04 22:33:56 +01:00
committed by Jaime Marquínez Ferrándiz
parent 082b1155a3
commit e7db87f700
5 changed files with 72 additions and 2 deletions

View File

@ -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: