Merge pull request #27 from jr-k/core/update-port-for-player-url

Update port for player url
This commit is contained in:
JRK 2024-05-07 13:47:07 +02:00 committed by GitHub
commit 3abeaec3cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,6 +90,13 @@ class ConfigManager:
if self.map().get('autoconfigure_lx_file'):
self.autoconfigure_lxconf()
self.autoconfigure_player_url()
def autoconfigure_player_url(self) -> str:
self._CONFIG['player_url'] = 'http://localhost:{}'.format(self.map().get('port'))
return self._CONFIG['player_url']
def autoconfigure_lxconf(self) -> None:
destination_path = self.map().get('autoconfigure_lx_file')
player_url = self.map().get('player_url')