Skip to content

Commit ccfc11e

Browse files
Forgot this in previous commit.
1 parent e2f1b83 commit ccfc11e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resources/scrap.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,7 @@ def _apply_candidate_on_metadata_new(self, gamedata, rom):
10781078
def scrap_CM_metadata_ROM(self, object_dic, data_dic, st_dic):
10791079
log_debug('ScrapeStrategy.scrap_CM_metadata_ROM() BEGIN ...')
10801080
# In AEL 0.10.x this data is grabed from the objects, not passed using a dictionary.
1081-
rom_FN = data_dic['rom_FN']
1082-
rom_base_noext = rom_FN.getBaseNoExt()
1081+
rom_base_noext = data_dic['ROM_FN'].getBaseNoExt()
10831082
scraper_name = self.scraper_obj.get_name()
10841083

10851084
# --- Check if scraper is OK (API keys configured, etc.) ---
@@ -1226,14 +1225,14 @@ def scrap_CM_asset_all(self, object_dic, data_dic, st_dic):
12261225
def _scrap_CM_get_candidate(self, object_name, object_dic, data_dic, st_dic):
12271226
# log_debug('ScrapeStrategy._scrap_CM_get_candidate() BEGIN...')
12281227

1229-
# In AEL 0.10.x this data is grabed from the objects, not passed using a dictionary.
1228+
# In AEL 0.10.x this data is grabbed from the objects, not passed using a dictionary.
12301229
ROM_FN = data_dic['ROM_FN']
12311230
ROM_hash_FN = data_dic['ROM_hash_FN']
12321231
platform = data_dic['platform']
12331232
scraper_name = self.scraper_obj.get_name()
12341233

12351234
# * Note that empty candidates may be in the cache. An empty candidate means that
1236-
# the scraper search was unsucessful. For some scrapers, changing the search
1235+
# the scraper search was unsuccessful. For some scrapers, changing the search
12371236
# string may produce a valid candidate.
12381237
# * In the context menu always rescrape empty candidates.
12391238
# * In the ROM scanner empty candidates are never rescraped. In that cases
@@ -1462,7 +1461,7 @@ class Scraper(object):
14621461
# the number of API calls is exceeded).
14631462
EXCEPTION_COUNTER_THRESHOLD = 5
14641463

1465-
# Disk cache types. These string will be part of the cache file names.
1464+
# Disk cache types. These strings will be part of the cache JSON file names.
14661465
CACHE_CANDIDATES = 'candidates'
14671466
CACHE_METADATA = 'metadata'
14681467
CACHE_ASSETS = 'assets'

0 commit comments

Comments
 (0)