MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / isInInactiveList

Function isInInactiveList

src/xepg.go:1748–1771  ·  view source on GitHub ↗
(channelURL string)

Source from the content-addressed store, hash-verified

1746}
1747
1748func isInInactiveList(channelURL string) bool {
1749 for _, channel := range Data.Streams.Inactive {
1750 // Type assert channel to map[string]interface{}
1751 chMap, ok := channel.(map[string]interface{})
1752 if !ok {
1753 continue
1754 }
1755
1756 urlValue, exists := chMap["url"]
1757 if !exists {
1758 continue
1759 }
1760
1761 urlStr, ok := urlValue.(string)
1762 if !ok {
1763 continue
1764 }
1765
1766 if urlStr == channelURL {
1767 return true
1768 }
1769 }
1770 return false
1771}
1772
1773// M3U Datei erstellen
1774func createM3UFile() {

Callers 1

createXEPGDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected