From 1af43b111c3dc802f18fa87e20c6c8da97157ebb Mon Sep 17 00:00:00 2001 From: Joren Date: Wed, 21 May 2025 09:40:45 +0200 Subject: [PATCH 1/3] enclose MPD url --- config.toml | 6 +++--- src/downloaders.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index 54bcb89..7321253 100644 --- a/config.toml +++ b/config.toml @@ -1,14 +1,14 @@ [General] -BaseDir = "/mnt/media" +BaseDir = "/home/joren/Downloads/VVV/media" Format = "mkv" TempBaseDir = "/tmp/nre" EnableConsole = true [WatchFolder] -Path = "/mnt/watched" +Path = "/home/joren/Downloads/VVV/watch" PollingInterval = 10 UsePolling = false UseInotify = false [N_m3u8DLRE] -Path = "nre" +Path = "n-m3u8dl-re" diff --git a/src/downloaders.go b/src/downloaders.go index 5ceef66..bea2500 100644 --- a/src/downloaders.go +++ b/src/downloaders.go @@ -168,7 +168,7 @@ func getDownloadCommand(item Item, mpdPath string, tempDir string) string { metadata := parseMetadata(item.Metadata) keys := getKeys(item.Keys) - command := fmt.Sprintf("%s %s", config.N_m3u8DLRE.Path, mpdPath) + command := fmt.Sprintf("%s \"%s\"", config.N_m3u8DLRE.Path, mpdPath) for _, key := range keys { if key != "" { From b2e3268ad1203b0c32c0dfc932e1fead3c46b56c Mon Sep 17 00:00:00 2001 From: Joren Date: Wed, 21 May 2025 09:42:35 +0200 Subject: [PATCH 2/3] Stop tracking config.toml --- config.toml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 config.toml diff --git a/config.toml b/config.toml deleted file mode 100644 index 7321253..0000000 --- a/config.toml +++ /dev/null @@ -1,14 +0,0 @@ -[General] -BaseDir = "/home/joren/Downloads/VVV/media" -Format = "mkv" -TempBaseDir = "/tmp/nre" -EnableConsole = true - -[WatchFolder] -Path = "/home/joren/Downloads/VVV/watch" -PollingInterval = 10 -UsePolling = false -UseInotify = false - -[N_m3u8DLRE] -Path = "n-m3u8dl-re" From 72b85ec28160e8c23e3631899e90d0c42570b24f Mon Sep 17 00:00:00 2001 From: Joren Date: Wed, 21 May 2025 09:44:20 +0200 Subject: [PATCH 3/3] Add template --- config.template.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config.template.toml diff --git a/config.template.toml b/config.template.toml new file mode 100644 index 0000000..54bcb89 --- /dev/null +++ b/config.template.toml @@ -0,0 +1,14 @@ +[General] +BaseDir = "/mnt/media" +Format = "mkv" +TempBaseDir = "/tmp/nre" +EnableConsole = true + +[WatchFolder] +Path = "/mnt/watched" +PollingInterval = 10 +UsePolling = false +UseInotify = false + +[N_m3u8DLRE] +Path = "nre"