PrintPriorityTables implemented
This commit is contained in:
parent
96a37777bb
commit
6bfb7dce34
9
utils.go
9
utils.go
@ -1,6 +1,7 @@
|
|||||||
package logic
|
package logic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -48,3 +49,11 @@ func Map2Table[K comparable](title string, m map[K]int) string {
|
|||||||
|
|
||||||
return table.String()
|
return table.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PrintPriorityTables() {
|
||||||
|
fmt.Println("generated priority values:")
|
||||||
|
fmt.Print(Map2Table("language", PreferredLanguages))
|
||||||
|
fmt.Print(Map2Table("subtitle", PreferredSubtitles))
|
||||||
|
fmt.Print(Map2Table("resolution", PreferredResolutions))
|
||||||
|
fmt.Println()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user