1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-31 03:39:50 +08:00

Add files via upload

This commit is contained in:
vayalil
2018-02-13 17:52:01 +11:00
committed by GitHub
Unverified
parent 49702e3669
commit a831e24565
2 changed files with 7 additions and 1 deletions
+1 -1
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]?)?)
$
+6
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',