mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Log when manifest/base url is being overridden by the user
This commit is contained in:
parent
2eac83f6d1
commit
9613ad34ba
|
@ -321,6 +321,7 @@ class LegendaryCore:
|
|||
|
||||
# load old manifest if we have one
|
||||
if override_old_manifest:
|
||||
self.log.info(f'Overriding old manifest with "{override_old_manifest}"')
|
||||
if override_old_manifest.startswith('http'):
|
||||
r = self.egs.unauth_session.get(override_old_manifest)
|
||||
r.raise_for_status()
|
||||
|
@ -337,6 +338,7 @@ class LegendaryCore:
|
|||
base_urls = list(game.base_urls) # copy list for manipulation
|
||||
|
||||
if override_manifest:
|
||||
self.log.info(f'Overriding manifest with "{override_manifest}"')
|
||||
if override_manifest.startswith('http'):
|
||||
r = self.egs.unauth_session.get(override_manifest)
|
||||
r.raise_for_status()
|
||||
|
@ -374,6 +376,7 @@ class LegendaryCore:
|
|||
break
|
||||
|
||||
if override_base_url:
|
||||
self.log.info(f'Overriding base URL with "{override_base_url}"')
|
||||
base_urls = [override_base_url]
|
||||
|
||||
self.log.debug(f'Base urls: {base_urls}')
|
||||
|
|
Loading…
Reference in a new issue