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

Function setGlobalDomain

src/system.go:258–290  ·  view source on GitHub ↗

Zugriff über die Domain ermöglichen

(domain string)

Source from the content-addressed store, hash-verified

256
257// Zugriff über die Domain ermöglichen
258func setGlobalDomain(domain string) {
259
260 System.Domain = domain
261
262 switch Settings.AuthenticationPMS {
263 case true:
264 System.Addresses.DVR = "username:password@" + System.Domain
265 case false:
266 System.Addresses.DVR = System.Domain
267 }
268
269 switch Settings.AuthenticationM3U {
270 case true:
271 System.Addresses.M3U = System.ServerProtocol.M3U + "://" + System.Domain + "/m3u/threadfin.m3u?username=xxx&password=yyy"
272 case false:
273 System.Addresses.M3U = System.ServerProtocol.M3U + "://" + System.Domain + "/m3u/threadfin.m3u"
274 }
275
276 switch Settings.AuthenticationXML {
277 case true:
278 System.Addresses.XML = System.ServerProtocol.XML + "://" + System.Domain + "/xmltv/threadfin.xml?username=xxx&password=yyy"
279 case false:
280 System.Addresses.XML = System.ServerProtocol.XML + "://" + System.Domain + "/xmltv/threadfin.xml"
281 }
282
283 if Settings.EpgSource != "XEPG" {
284 log.Println("SOURCE: ", Settings.EpgSource)
285 System.Addresses.M3U = getErrMsg(2106)
286 System.Addresses.XML = getErrMsg(2106)
287 }
288
289 return
290}
291
292// UUID generieren
293func createUUID() (uuid string) {

Callers 6

InitFunction · 0.85
IndexFunction · 0.85
ThreadfinFunction · 0.85
WSFunction · 0.85
WebFunction · 0.85
APIFunction · 0.85

Calls 1

getErrMsgFunction · 0.85

Tested by

no test coverage detected