v2.0.0.0009-beta
This commit is contained in:
68
src/webUI.go
68
src/webUI.go
File diff suppressed because one or more lines are too long
@@ -597,8 +597,12 @@ func Web(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if getFilenameFromPath(requestFile) == "html" {
|
||||
|
||||
if len(Data.Streams.All) == 0 && System.ScanInProgress == 0 {
|
||||
System.ConfigurationWizard = true
|
||||
if System.ScanInProgress == 0 {
|
||||
|
||||
if len(Settings.Files.M3U) == 0 || len(Settings.Files.HDHR) == 0 {
|
||||
System.ConfigurationWizard = true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
switch System.ConfigurationWizard {
|
||||
|
||||
@@ -760,7 +760,9 @@ func createDummyProgram(xepgChannel XEPGChannelStruct) (dummyXMLTV XMLTV) {
|
||||
epg.Poster = append(epg.Poster, poster)
|
||||
}
|
||||
|
||||
epg.EpisodeNum = append(epg.EpisodeNum, &EpisodeNum{Value: epgStartTime.Format("2006-01-02 15:04:05"), System: "original-air-date"})
|
||||
if xepgChannel.XCategory != "Movie" {
|
||||
epg.EpisodeNum = append(epg.EpisodeNum, &EpisodeNum{Value: epgStartTime.Format("2006-01-02 15:04:05"), System: "original-air-date"})
|
||||
}
|
||||
|
||||
epg.New = &New{Value: ""}
|
||||
|
||||
@@ -823,10 +825,10 @@ func getEpisodeNum(program *Program, xmltvProgram *Program, xepgChannel XEPGChan
|
||||
|
||||
program.EpisodeNum = xmltvProgram.EpisodeNum
|
||||
|
||||
if len(xepgChannel.XCategory) > 0 {
|
||||
if len(xepgChannel.XCategory) > 0 && xepgChannel.XCategory != "Movie" {
|
||||
|
||||
if len(xmltvProgram.EpisodeNum) == 0 {
|
||||
program.EpisodeNum = append(program.EpisodeNum, &EpisodeNum{Value: time.Now().Format("2006-01-02"), System: "original-air-date"})
|
||||
program.EpisodeNum = append(program.EpisodeNum, &EpisodeNum{Value: time.Now().Format("2006-01-02 15:04:05"), System: "original-air-date"})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user