mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-10 12:22:19 +03:00
Add comments to createXxxxCommand functions to clarify about the filepaths arguments being absolute paths
This commit is contained in:
parent
63bf49b3c4
commit
9b461735f4
@ -37,6 +37,7 @@ func (ff *ffmpeg) Start(ctx context.Context, command, path string, maxBitRate in
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path will always be an absolute path
|
||||||
func createTranscodeCommand(cmd, path string, maxBitRate int, format string) (string, []string) {
|
func createTranscodeCommand(cmd, path string, maxBitRate int, format string) (string, []string) {
|
||||||
split := strings.Split(cmd, " ")
|
split := strings.Split(cmd, " ")
|
||||||
for i, s := range split {
|
for i, s := range split {
|
||||||
|
@ -268,6 +268,7 @@ func (m *Metadata) parseDuration(tagName string) float32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Inputs will always be absolute paths
|
||||||
func createProbeCommand(inputs []string) (string, []string) {
|
func createProbeCommand(inputs []string) (string, []string) {
|
||||||
cmd := conf.Server.ProbeCommand
|
cmd := conf.Server.ProbeCommand
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user