MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / getCategory

Function getCategory

src/xepg.go:1620–1639  ·  view source on GitHub ↗

Kategorien erweitern (createXMLTVFile)

(program *Program, xmltvProgram *Program, xepgChannel XEPGChannelStruct, filters []FilterStruct)

Source from the content-addressed store, hash-verified

1618
1619// Kategorien erweitern (createXMLTVFile)
1620func getCategory(program *Program, xmltvProgram *Program, xepgChannel XEPGChannelStruct, filters []FilterStruct) {
1621
1622 for _, i := range xmltvProgram.Category {
1623
1624 category := &Category{}
1625 category.Value = i.Value
1626 category.Lang = i.Lang
1627 program.Category = append(program.Category, category)
1628
1629 }
1630
1631 if len(xepgChannel.XCategory) > 0 {
1632
1633 category := &Category{}
1634 category.Value = strings.ToLower(xepgChannel.XCategory)
1635 category.Lang = "en"
1636 program.Category = append(program.Category, category)
1637
1638 }
1639}
1640
1641// Programm Poster Cover aus der XMLTV Datei laden
1642func getPoster(program *Program, xmltvProgram *Program, xepgChannel XEPGChannelStruct, forceHttps bool) {

Callers 1

getProgramDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected