initial commit
This commit is contained in:
17
file_priority_string.go
Normal file
17
file_priority_string.go
Normal file
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.tordarus.net/nyaanime/logic"
|
||||
)
|
||||
|
||||
func FilePrio2Str(fp *logic.FilePriority) string {
|
||||
return fmt.Sprintf("priority: %d | resolution: %s | languages: %s | subtitles: %s",
|
||||
fp.Priority,
|
||||
fp.Properties.GetResolution().String(),
|
||||
strings.Join(fp.Properties.GetLanguages(), ", "),
|
||||
strings.Join(fp.Properties.GetSubtitles(), ", "),
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user