Add files via upload

This commit is contained in:
vayalil 2018-02-13 17:52:01 +11:00 committed by GitHub
parent 49702e3669
commit a831e24565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ class YoutubeDL(object):
'!=': operator.ne,
}
operator_rex = re.compile(r'''(?x)\s*
(?P<key>width|height|tbr|abr|vbr|asr|filesize|filesize_approx|fps)
(?P<key>width|height|tbr|abr|vbr|asr|filesize|fps)
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
$

View File

@ -813,6 +813,12 @@ def parseOpts(overrideArguments=None):
'--add-metadata',
action='store_true', dest='addmetadata', default=False,
help='Write metadata to the video file')
postproc.add_option(
'--metadata',
metavar='METADATA', dest='metafromuser', default=False,
help='Allows the user to specify key/value pairs for encoding metadata, sepatated by equal sign.'
'Example: --metadata "album = Movie Title artist = Various artists year = "2010"'
'Also tries to capture artist information from the file description, if otherwise not available')
postproc.add_option(
'--metadata-from-title',
metavar='FORMAT', dest='metafromtitle',