Kategorien erweitern (createXMLTVFile)
(program *Program, xmltvProgram *Program, xepgChannel XEPGChannelStruct, filters []FilterStruct)
| 1618 | |
| 1619 | // Kategorien erweitern (createXMLTVFile) |
| 1620 | func 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 |
| 1642 | func getPoster(program *Program, xmltvProgram *Program, xepgChannel XEPGChannelStruct, forceHttps bool) { |