diff options
author | Rogério Brito <rbrito@ime.usp.br> | 2018-01-04 03:48:53 -0200 |
---|---|---|
committer | Rogério Brito <rbrito@ime.usp.br> | 2018-01-04 03:48:53 -0200 |
commit | 9113dfef91df19343cf76c6274dd0a85258c1004 (patch) | |
tree | 357bea65ff97d11085714837737d0428fbf40a54 /youtube_dl/utils.py | |
parent | 80893415fd8cecb59cb8ffbea17a183d4202f02e (diff) | |
parent | b4a0c9f9de9d715538a1718922d6ab01a40f7ce3 (diff) | |
download | youtube-dl-9113dfef91df19343cf76c6274dd0a85258c1004.zip youtube-dl-9113dfef91df19343cf76c6274dd0a85258c1004.tar.gz youtube-dl-9113dfef91df19343cf76c6274dd0a85258c1004.tar.bz2 |
Update upstream source from tag 'upstream/2017.12.31'
Update to upstream version '2017.12.31'
with Debian dir 1882f6f128562a71691f1092c6b611d46798c5c4
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 34866a5..2843a3d 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -159,6 +159,8 @@ DATE_FORMATS = ( '%Y-%m-%dT%H:%M', '%b %d %Y at %H:%M', '%b %d %Y at %H:%M:%S', + '%B %d %Y at %H:%M', + '%B %d %Y at %H:%M:%S', ) DATE_FORMATS_DAY_FIRST = list(DATE_FORMATS) @@ -2350,6 +2352,7 @@ def mimetype2ext(mt): 'ttml+xml': 'ttml', 'x-flv': 'flv', 'x-mp4-fragmented': 'mp4', + 'x-ms-sami': 'sami', 'x-ms-wmv': 'wmv', 'mpegurl': 'm3u8', 'x-mpegurl': 'm3u8', @@ -2372,7 +2375,7 @@ def parse_codecs(codecs_str): vcodec, acodec = None, None for full_codec in splited_codecs: codec = full_codec.split('.')[0] - if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v'): + if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v', 'hvc1'): if not vcodec: vcodec = full_codec elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): |