From 983915f8aa3fdafb20e5a002a73a818e70846dae Mon Sep 17 00:00:00 2001 From: LelieL91 <48968075+LelieL91@users.noreply.github.com> Date: Fri, 7 Feb 2025 22:00:11 +0100 Subject: [PATCH] Fixed static file location (#263) * Update EN, IT langs Fixed EN lang mistype error Added missing IT keys + added more translations * Fixed files location - livestreams.dat now uses same location as session.data (if specified on config.yml) - .db.lock now uses same location as database file (if specified on config.yml) * Update migrate.go revert edit --------- Co-authored-by: Marco Piovanello <35533749+marcopiovanello@users.noreply.github.com> --- server/internal/livestream/monitor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/internal/livestream/monitor.go b/server/internal/livestream/monitor.go index f4a02a9..79f052c 100644 --- a/server/internal/livestream/monitor.go +++ b/server/internal/livestream/monitor.go @@ -76,7 +76,7 @@ func (m *Monitor) Status() LiveStreamStatus { // Persist the monitor current state to a file. // The file is located in the configured config directory func (m *Monitor) Persist() error { - fd, err := os.Create(filepath.Join(config.Instance().Dir(), "livestreams.dat")) + fd, err := os.Create(filepath.Join(config.Instance().SessionFilePath, "livestreams.dat")) if err != nil { return err } @@ -95,7 +95,7 @@ func (m *Monitor) Persist() error { // Restore a saved state and resume the monitored livestreams func (m *Monitor) Restore() error { - fd, err := os.Open(filepath.Join(config.Instance().Dir(), "livestreams.dat")) + fd, err := os.Open(filepath.Join(config.Instance().SessionFilePath, "livestreams.dat")) if err != nil { return err }