mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli/core] Fix some plurals
This commit is contained in:
parent
1c8349a28e
commit
c8189460c2
|
@ -1767,7 +1767,7 @@ class LegendaryCLI:
|
||||||
logger.info('No remaining games found.')
|
logger.info('No remaining games found.')
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info(f'Found {len(uplay_games)} games to redeem:')
|
logger.info(f'Found {len(uplay_games)} game(s) to redeem:')
|
||||||
for game in sorted(uplay_games, key=lambda g: g.app_title.lower()):
|
for game in sorted(uplay_games, key=lambda g: g.app_title.lower()):
|
||||||
logger.info(f' - {game.app_title}')
|
logger.info(f' - {game.app_title}')
|
||||||
|
|
||||||
|
|
|
@ -421,7 +421,7 @@ class LegendaryCore:
|
||||||
# setup and teardown of thread pool takes some time, so only do it when it makes sense.
|
# setup and teardown of thread pool takes some time, so only do it when it makes sense.
|
||||||
use_threads = len(fetch_list) > 5
|
use_threads = len(fetch_list) > 5
|
||||||
if fetch_list:
|
if fetch_list:
|
||||||
self.log.info(f'Fetching metadata for {len(fetch_list)} apps.')
|
self.log.info(f'Fetching metadata for {len(fetch_list)} app(s).')
|
||||||
if use_threads:
|
if use_threads:
|
||||||
with ThreadPoolExecutor(max_workers=16) as executor:
|
with ThreadPoolExecutor(max_workers=16) as executor:
|
||||||
executor.map(fetch_game_meta, fetch_list, timeout=60.0)
|
executor.map(fetch_game_meta, fetch_list, timeout=60.0)
|
||||||
|
|
Loading…
Reference in a new issue