From a7899e794483223cbfbf5b8304ca26be3936766e Mon Sep 17 00:00:00 2001 From: jshackles Date: Thu, 27 Aug 2020 10:54:18 -0700 Subject: [PATCH] REMOVE: corrections feature GOG has a better matching algorithm now and a new back-end database tool. From what I can tell, this feature is no longer needed. --- .../corrections.py | 1 - 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py | 10 +++------- .../corrections.py | 1 - 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py | 10 +++------- .../corrections.py | 1 - atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py | 10 +++------- dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/corrections.py | 1 - dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py | 10 +++------- gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/corrections.py | 1 - gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py | 10 +++------- .../corrections.py | 1 - gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py | 10 +++------- .../corrections.py | 1 - gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py | 10 +++------- .../corrections.py | 1 - jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py | 10 +++------- .../corrections.py | 8 -------- n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py | 10 +++------- .../corrections.py | 1 - ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py | 10 +++------- .../corrections.py | 1 - nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/plugin.py | 10 +++------- .../corrections.py | 6 ------ nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/plugin.py | 10 +++------- .../corrections.py | 1 - nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/plugin.py | 10 +++------- .../corrections.py | 1 - pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/plugin.py | 10 +++------- .../corrections.py | 1 - ps1_ff02c67d-5962-4e79-a3a3-928814edb270/plugin.py | 10 +++------- .../corrections.py | 1 - ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/plugin.py | 10 +++------- .../corrections.py | 1 - psp_05487532-ba29-411b-b799-784262d275bd/plugin.py | 10 +++------- .../corrections.py | 1 - saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/plugin.py | 10 +++------- .../corrections.py | 1 - segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/plugin.py | 10 +++------- .../corrections.py | 7 ------- segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/plugin.py | 10 +++------- .../corrections.py | 1 - sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/plugin.py | 10 +++------- .../corrections.py | 4 ---- snes_bc831044-f772-4391-8c22-529f42cb9799/plugin.py | 10 +++------- 44 files changed, 66 insertions(+), 197 deletions(-) delete mode 100644 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/corrections.py delete mode 100644 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/corrections.py delete mode 100644 atari_830528d9-e621-48e9-8ed4-e03a4853843e/corrections.py delete mode 100644 dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/corrections.py delete mode 100644 gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/corrections.py delete mode 100644 gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/corrections.py delete mode 100644 gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/corrections.py delete mode 100644 jaguar_b9773549-9c20-4729-b23d-f683762ce73a/corrections.py delete mode 100644 n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/corrections.py delete mode 100644 ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/corrections.py delete mode 100644 nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/corrections.py delete mode 100644 nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/corrections.py delete mode 100644 nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/corrections.py delete mode 100644 pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/corrections.py delete mode 100644 ps1_ff02c67d-5962-4e79-a3a3-928814edb270/corrections.py delete mode 100644 ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/corrections.py delete mode 100644 psp_05487532-ba29-411b-b799-784262d275bd/corrections.py delete mode 100644 saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/corrections.py delete mode 100644 segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/corrections.py delete mode 100644 segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/corrections.py delete mode 100644 sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/corrections.py delete mode 100644 snes_bc831044-f772-4391-8c22-529f42cb9799/corrections.py diff --git a/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/corrections.py b/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py b/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py index 4f7188c..d56be9b 100644 --- a/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py +++ b/3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/corrections.py b/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py b/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py index 28b33b9..8d25ca3 100644 --- a/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py +++ b/3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/atari_830528d9-e621-48e9-8ed4-e03a4853843e/corrections.py b/atari_830528d9-e621-48e9-8ed4-e03a4853843e/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/atari_830528d9-e621-48e9-8ed4-e03a4853843e/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py b/atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py index af5955f..9d13660 100644 --- a/atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py +++ b/atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/corrections.py b/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py b/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py index b05c83b..e1296bb 100644 --- a/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py +++ b/dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/corrections.py b/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py b/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py index b7909e8..a25c325 100644 --- a/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py +++ b/gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/corrections.py b/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py b/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py index 0283202..3576dcc 100644 --- a/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py +++ b/gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/corrections.py b/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py b/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py index ee0a705..995e98d 100644 --- a/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py +++ b/gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/corrections.py b/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py b/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py index a2f91a7..5965571 100644 --- a/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py +++ b/jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/corrections.py b/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/corrections.py deleted file mode 100644 index 7a2d283..0000000 --- a/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/corrections.py +++ /dev/null @@ -1,8 +0,0 @@ -correction_list = {} - -correction_list["Legend of Zelda, The - Majora's Mask"] = "The Legend of Zelda - Majora's Mask" -correction_list["Legend of Zelda, The - Ocarina of Time"] = "The Legend of Zelda - Ocarina of Time" -correction_list["Doubutsu no Mori"] = "Animal Forest" -correction_list["Bomberman 64 - The Second Attack!"] = "Bomberman 64: The Second Attack" -correction_list["Tarzan"] = "Disney's Tarzan" -correction_list["RR64 - Ridge Racer 64"] = "Ridge Racer 64" \ No newline at end of file diff --git a/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py b/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py index 5e36955..cdf09be 100644 --- a/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py +++ b/n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -52,14 +52,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/corrections.py b/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py b/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py index 756b412..5f33da8 100644 --- a/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py +++ b/ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/corrections.py b/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/plugin.py b/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/plugin.py index fc7a6b7..2ffd118 100644 --- a/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/plugin.py +++ b/nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/corrections.py b/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/corrections.py deleted file mode 100644 index 60de926..0000000 --- a/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/corrections.py +++ /dev/null @@ -1,6 +0,0 @@ -correction_list = {} - -correction_list["Dragon Warrior"] = "Dragon Quest" -correction_list["Dragon Warrior II"] = "Dragon Quest II" -correction_list["Dragon Warrior III"] = "Dragon Quest III" -correction_list["Dragon Warrior IV"] = "Dragon Quest IV" \ No newline at end of file diff --git a/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/plugin.py b/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/plugin.py index b9f6d48..efebc67 100644 --- a/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/plugin.py +++ b/nes_e2c630e1-3cbe-4dbd-9235-5e6a2d2955ad/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/corrections.py b/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/plugin.py b/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/plugin.py index 1e609d6..8f479c6 100644 --- a/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/plugin.py +++ b/nwii_2d0e97ac-0406-4e5f-a85b-ab5b1a042cba/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/corrections.py b/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/plugin.py b/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/plugin.py index 59d0258..48a9c97 100644 --- a/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/plugin.py +++ b/pce_c0ffd4b8-41c3-46b8-b0f7-5f4e4bafc68a/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/corrections.py b/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/plugin.py b/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/plugin.py index 7a3130a..b62ad82 100644 --- a/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/plugin.py +++ b/ps1_ff02c67d-5962-4e79-a3a3-928814edb270/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/corrections.py b/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/plugin.py b/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/plugin.py index f5547d9..02fd0a5 100644 --- a/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/plugin.py +++ b/ps2_50ad79eb-393c-4f95-98ce-59f095ae47ea/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/psp_05487532-ba29-411b-b799-784262d275bd/corrections.py b/psp_05487532-ba29-411b-b799-784262d275bd/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/psp_05487532-ba29-411b-b799-784262d275bd/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/psp_05487532-ba29-411b-b799-784262d275bd/plugin.py b/psp_05487532-ba29-411b-b799-784262d275bd/plugin.py index 70ab148..dc1051e 100644 --- a/psp_05487532-ba29-411b-b799-784262d275bd/plugin.py +++ b/psp_05487532-ba29-411b-b799-784262d275bd/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/corrections.py b/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/plugin.py b/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/plugin.py index a6830de..c79ebb5 100644 --- a/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/plugin.py +++ b/saturn_bd6ec091-8ee0-440a-9e26-71bbf21c05af/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/corrections.py b/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/plugin.py b/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/plugin.py index 6b485e5..73ba879 100644 --- a/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/plugin.py +++ b/segacd_ec7197bf-a4e4-4b86-81b9-38ea7d56f3b2/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/corrections.py b/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/corrections.py deleted file mode 100644 index d005d29..0000000 --- a/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/corrections.py +++ /dev/null @@ -1,7 +0,0 @@ -correction_list = {} - -correction_list["Sonic Spinball"] = "Sonic the Hedgehog: Spinball" -correction_list["Adventures of Batman & Robin, The"] = "The Adventures of Batman & Robin (Genesis)" -correction_list["Alien 3"] = "Alien\u00b3" -correction_list["Batman - The Video Game"] = "Batman" -correction_list["Chakan"] = "Chakan: The Forever Man" \ No newline at end of file diff --git a/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/plugin.py b/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/plugin.py index 5d01f9e..6a59fa4 100644 --- a/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/plugin.py +++ b/segag_e3ac94e7-945e-459d-bc1e-676cff8173f9/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/corrections.py b/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/corrections.py deleted file mode 100644 index 401ed9e..0000000 --- a/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/corrections.py +++ /dev/null @@ -1 +0,0 @@ -correction_list = {} \ No newline at end of file diff --git a/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/plugin.py b/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/plugin.py index 9be919d..ce6a112 100644 --- a/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/plugin.py +++ b/sms_c6689bfb-7ba4-4d24-98e3-bd2dc339926b/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) ) diff --git a/snes_bc831044-f772-4391-8c22-529f42cb9799/corrections.py b/snes_bc831044-f772-4391-8c22-529f42cb9799/corrections.py deleted file mode 100644 index 3f4248c..0000000 --- a/snes_bc831044-f772-4391-8c22-529f42cb9799/corrections.py +++ /dev/null @@ -1,4 +0,0 @@ -correction_list = {} - -correction_list["Final Fantasy II"] = "Final Fantasy IV" -correction_list["Final Fantasy III"] = "Final Fantasy VI" \ No newline at end of file diff --git a/snes_bc831044-f772-4391-8c22-529f42cb9799/plugin.py b/snes_bc831044-f772-4391-8c22-529f42cb9799/plugin.py index dc18fcd..4681c1d 100644 --- a/snes_bc831044-f772-4391-8c22-529f42cb9799/plugin.py +++ b/snes_bc831044-f772-4391-8c22-529f42cb9799/plugin.py @@ -2,7 +2,7 @@ import subprocess import sys import json, urllib.request, os, os.path -import user_config, corrections +import user_config import datetime import logging import time @@ -51,14 +51,10 @@ def update_game_cache(self): rom_path = entry["path"].split("#")[0] if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path): provided_name = entry["label"].split(" (")[0] - if provided_name in corrections.correction_list: - correct_name = corrections.correction_list[provided_name] - else: - correct_name = provided_name game_list.append( Game( - correct_name, - correct_name, + provided_name, + provided_name, None, LicenseInfo(LicenseType.SinglePurchase, None) )