X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/c94fef11f43279165f39680fa0b0922c86702687..a098a4fcbfe0649cfd9d171e59e822a4bd1b2ec4:/radio/files_machine.go diff --git a/radio/files_machine.go b/radio/files_machine.go index ea2f775..143397a 100644 --- a/radio/files_machine.go +++ b/radio/files_machine.go @@ -1,7 +1,7 @@ package main import ( - "code.octet-stream.net/broadcaster/protocol" + "code.octet-stream.net/broadcaster/internal/protocol" "crypto/sha256" "encoding/hex" "io" @@ -106,7 +106,7 @@ func (m *FilesMachine) DownloadSingle(filename string, downloadResult chan<- err 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