diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-25 03:32:15 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-25 03:32:15 +0530 |
commit | 143db31d48802e26e975a94ab27263df381c9381 (patch) | |
tree | d96b2725630248140deded60fdbaf05281765e23 /yt_dlp/options.py | |
parent | 3700c7ef10a665c4153bc532c789c059dfbaea42 (diff) | |
download | hypervideo-pre-143db31d48802e26e975a94ab27263df381c9381.tar.lz hypervideo-pre-143db31d48802e26e975a94ab27263df381c9381.tar.xz hypervideo-pre-143db31d48802e26e975a94ab27263df381c9381.zip |
Parse metadata from multiple fields
Closes #196
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 49a275252..95ef27e26 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -1147,13 +1147,18 @@ def parseOpts(overrideArguments=None): metavar='FIELD:FORMAT', dest='metafromfield', action='append', help=( 'Parse additional metadata like title/artist from other fields. ' - 'Give field name to extract data from, and format of the field seperated by a ":". ' + 'Give a template or field name to extract data from and the ' + 'format to interpret it as, seperated by a ":". ' 'Either regular expression with named capture groups or a ' - 'similar syntax to the output template can also be used. ' - 'The parsed parameters replace any existing values and can be use in output template. ' + 'similar syntax to the output template can be used for the FORMAT. ' + 'Similarly, the syntax for output template can be used for FIELD ' + 'to parse the data from multiple fields. ' + 'The parsed parameters replace any existing values and can be used in output templates. ' 'This option can be used multiple times. ' 'Example: --parse-metadata "title:%(artist)s - %(title)s" matches a title like ' '"Coldplay - Paradise". ' + 'Example: --parse-metadata "%(series)s %(episode_number)s:%(title)s" ' + 'sets the title using series and episode number. ' 'Example (regex): --parse-metadata "description:Artist - (?P<artist>.+?)"')) postproc.add_option( '--xattrs', |