1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

fix ISO 639-1 code for Japanese

"jp" -> "ja"
This commit is contained in:
Mike Fährmann 2021-05-22 16:07:04 +02:00
parent 2c60c7d798
commit 8fd8126117
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
"gid": 1200119,
"height": int,
"image_token": "re:[0-9a-f]{10}",
"lang": "jp",
"lang": "ja",
"language": "Japanese",
"parent": "",
"rating": r"re:\d\.\d+",

View File

@ -330,7 +330,7 @@ CODES = {
"hu": "Hungarian",
"id": "Indonesian",
"it": "Italian",
"jp": "Japanese",
"ja": "Japanese",
"ko": "Korean",
"ms": "Malay",
"nl": "Dutch",

View File

@ -134,6 +134,7 @@ class TestISO639_1(unittest.TestCase):
self._run_test(util.code_to_language, {
("en",): "English",
("FR",): "French",
("ja",): "Japanese",
("xx",): None,
("" ,): None,
(None,): None,
@ -149,6 +150,7 @@ class TestISO639_1(unittest.TestCase):
self._run_test(util.language_to_code, {
("English",): "en",
("fRENch",): "fr",
("Japanese",): "ja",
("xx",): None,
("" ,): None,
(None,): None,