mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 20:22:36 +01:00
fix ISO 639-1 code for Japanese
"jp" -> "ja"
This commit is contained in:
parent
2c60c7d798
commit
8fd8126117
@ -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+",
|
||||
|
@ -330,7 +330,7 @@ CODES = {
|
||||
"hu": "Hungarian",
|
||||
"id": "Indonesian",
|
||||
"it": "Italian",
|
||||
"jp": "Japanese",
|
||||
"ja": "Japanese",
|
||||
"ko": "Korean",
|
||||
"ms": "Malay",
|
||||
"nl": "Dutch",
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user