Skip to content

Commit

Permalink
feat: Add XmltvProgramme property to XmlTv2Mxf class
Browse files Browse the repository at this point in the history
This commit adds a new property, XmltvProgramme, to the XmlTv2Mxf class. This property will store the program information obtained from the XMLTV file. This commit is a new feature for the user and will trigger a release bumping a MINOR.
  • Loading branch information
SenexCrenshaw committed Feb 1, 2024
1 parent ec9ff05 commit 94aad5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StreamMaster.SchedulesDirect/Converters/XmlTv2Mxf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ private bool BuildScheduleEntries(XMLTV xmlTv)
mxfProgram = mxfProgram,
StartTime = dtStart,
Duration = Duration,
XmltvProgramme = program
//Duration = (int)(DateTime.ParseExact(program.Stop, "yyyyMMddHHmmss zzz", CultureInfo.InvariantCulture).ToUniversalTime() - dtStart).TotalSeconds,
//IsCc = program.SubTitles2?.Any(arg => arg.Type.Equals("teletext", StringComparison.OrdinalIgnoreCase)) ?? false,
//IsSigned = program.SubTitles2?.Any(arg => arg.Type.Equals("deaf-signed", StringComparison.OrdinalIgnoreCase)) ?? false,
Expand All @@ -317,7 +318,7 @@ private bool BuildScheduleEntries(XMLTV xmlTv)
//TvRating = DetermineTvRatings(program),
////IsClassroom = NOT PART OF XMLTV
//IsRepeat = !mxfProgram.IsMovie && program.PreviouslyShown != null,
XmltvProgramme = program

};
mxfService.MxfScheduleEntries.ScheduleEntry.Add(scheduleEntry);
//mxfService.MxfScheduleEntries.ScheduleEntry.Add(new MxfScheduleEntry
Expand Down

0 comments on commit 94aad5b

Please sign in to comment.