7 Commits

Author SHA1 Message Date
6e016b802b ye 2025-06-01 19:44:24 +02:00
72b85ec281 Add template 2025-05-21 09:44:20 +02:00
b2e3268ad1 Stop tracking config.toml 2025-05-21 09:42:35 +02:00
1af43b111c enclose MPD url 2025-05-21 09:40:45 +02:00
03312a0079 Fix accidentally registering same handler twice 2024-12-31 01:50:58 +01:00
a91163f845 config 2024-12-30 16:57:05 +01:00
7d28d1cea8 Merge pull request 'speedLimiter' (#10) from speedLimiter into main
Reviewed-on: #10
2024-12-30 16:47:45 +01:00
3 changed files with 3 additions and 5 deletions

View File

@ -1,11 +1,11 @@
[General] [General]
BaseDir = "/mnt/Media" BaseDir = "/mnt/media"
Format = "mkv" Format = "mkv"
TempBaseDir = "/tmp/nre" TempBaseDir = "/tmp/nre"
EnableConsole = true EnableConsole = true
[WatchFolder] [WatchFolder]
Path = "/mnt/Watched" Path = "/mnt/watched"
PollingInterval = 10 PollingInterval = 10
UsePolling = false UsePolling = false
UseInotify = false UseInotify = false

View File

@ -168,7 +168,7 @@ func getDownloadCommand(item Item, mpdPath string, tempDir string) string {
metadata := parseMetadata(item.Metadata) metadata := parseMetadata(item.Metadata)
keys := getKeys(item.Keys) 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 { for _, key := range keys {
if key != "" { if key != "" {

View File

@ -72,8 +72,6 @@ func main() {
} }
processItems(*inputFile, items) processItems(*inputFile, items)
} }
http.HandleFunc("/set-speed-limit", handleSetSpeedLimit)
} }
func startWebServer() { func startWebServer() {