mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[utils] Use native french month names
This commit is contained in:
parent
f6717dec8a
commit
3e4185c396
|
@ -638,13 +638,11 @@ class TestUtil(unittest.TestCase):
|
||||||
def test_month_by_name(self):
|
def test_month_by_name(self):
|
||||||
self.assertEqual(month_by_name(None), None)
|
self.assertEqual(month_by_name(None), None)
|
||||||
self.assertEqual(month_by_name('December', 'en'), 12)
|
self.assertEqual(month_by_name('December', 'en'), 12)
|
||||||
self.assertEqual(month_by_name('decembre', 'fr'), 12)
|
self.assertEqual(month_by_name('décembre', 'fr'), 12)
|
||||||
self.assertEqual(month_by_name('December'), 12)
|
self.assertEqual(month_by_name('December'), 12)
|
||||||
self.assertEqual(month_by_name('decembre'), None)
|
self.assertEqual(month_by_name('décembre'), None)
|
||||||
self.assertEqual(month_by_name('Unknown', 'unknown'), None)
|
self.assertEqual(month_by_name('Unknown', 'unknown'), None)
|
||||||
|
|
||||||
def test_m
|
|
||||||
|
|
||||||
def test_parse_codecs(self):
|
def test_parse_codecs(self):
|
||||||
self.assertEqual(parse_codecs(''), {})
|
self.assertEqual(parse_codecs(''), {})
|
||||||
self.assertEqual(parse_codecs('avc1.77.30, mp4a.40.2'), {
|
self.assertEqual(parse_codecs('avc1.77.30, mp4a.40.2'), {
|
||||||
|
|
|
@ -94,8 +94,8 @@ ENGLISH_MONTH_NAMES = [
|
||||||
MONTH_NAMES = {
|
MONTH_NAMES = {
|
||||||
'en': ENGLISH_MONTH_NAMES,
|
'en': ENGLISH_MONTH_NAMES,
|
||||||
'fr': [
|
'fr': [
|
||||||
'janvier', 'fevrier', 'mars', 'avril', 'mai', 'juin',
|
'janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||||
'juillet', 'aout', 'septembre', 'octobre', 'novembre', 'decembre'],
|
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||||
}
|
}
|
||||||
|
|
||||||
KNOWN_EXTENSIONS = (
|
KNOWN_EXTENSIONS = (
|
||||||
|
|
Loading…
Reference in a new issue