]> code.octet-stream.net Git - broadcaster/blobdiff - radio/files_machine.go
Simplify package names
[broadcaster] / radio / files_machine.go
index ea2f77530e7346df5ba6894237664582f320d1c3..143397a4b923274f8f9e43f6ae90ab73f5a3a678 100644 (file)
@@ -1,7 +1,7 @@
 package main
 
 import (
 package main
 
 import (
-       "code.octet-stream.net/broadcaster/protocol"
+       "code.octet-stream.net/broadcaster/internal/protocol"
        "crypto/sha256"
        "encoding/hex"
        "io"
        "crypto/sha256"
        "encoding/hex"
        "io"
@@ -106,7 +106,7 @@ func (m *FilesMachine) DownloadSingle(filename string, downloadResult chan<- err
                return
        }
        defer out.Close()
                return
        }
        defer out.Close()
-       resp, err := http.Get(config.ServerURL + "/audio-files/" + filename)
+       resp, err := http.Get(config.ServerURL + "/file-downloads/" + filename)
        if err != nil {
                downloadResult <- err
                return
        if err != nil {
                downloadResult <- err
                return