mirror of
https://github.com/derrod/legendary.git
synced 2025-06-30 14:48:34 +00:00
Use CDN-provided base URLs with overridden manifest
This commit is contained in:
parent
1ccbffe1ad
commit
32d6c207f3
|
@ -1348,8 +1348,6 @@ class LegendaryCore:
|
||||||
else:
|
else:
|
||||||
old_manifest = self.load_manifest(old_bytes)
|
old_manifest = self.load_manifest(old_bytes)
|
||||||
|
|
||||||
base_urls = game.base_urls
|
|
||||||
|
|
||||||
# The EGS client uses plaintext HTTP by default for the purposes of enabling simple DNS based
|
# The EGS client uses plaintext HTTP by default for the purposes of enabling simple DNS based
|
||||||
# CDN redirection to a (local) cache. In Legendary this will be a config option.
|
# CDN redirection to a (local) cache. In Legendary this will be a config option.
|
||||||
disable_https = disable_https or self.lgd.config.getboolean('Legendary', 'disable_https', fallback=False)
|
disable_https = disable_https or self.lgd.config.getboolean('Legendary', 'disable_https', fallback=False)
|
||||||
|
@ -1357,6 +1355,7 @@ class LegendaryCore:
|
||||||
if override_manifest:
|
if override_manifest:
|
||||||
self.log.info(f'Overriding manifest with "{override_manifest}"')
|
self.log.info(f'Overriding manifest with "{override_manifest}"')
|
||||||
new_manifest_data = self.get_uri_manifest(override_manifest)
|
new_manifest_data = self.get_uri_manifest(override_manifest)
|
||||||
|
_, base_urls, _ = self.get_cdn_urls(game, platform)
|
||||||
else:
|
else:
|
||||||
new_manifest_data, base_urls = self.get_cdn_manifest(game, platform, disable_https=disable_https)
|
new_manifest_data, base_urls = self.get_cdn_manifest(game, platform, disable_https=disable_https)
|
||||||
# overwrite base urls in metadata with current ones to avoid using old/dead CDNs
|
# overwrite base urls in metadata with current ones to avoid using old/dead CDNs
|
||||||
|
|
Loading…
Reference in a new issue