From 2b74cb5619be16e5800557c208a0d23e8c11a560 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Fri, 20 Jul 2012 10:47:39 -0400 Subject: [PATCH] Added AirDay and AirTime to Series --- MediaBrowser.TV/Entities/Series.cs | 3 +++ MediaBrowser.TV/Metadata/SeriesXmlParser.cs | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/MediaBrowser.TV/Entities/Series.cs b/MediaBrowser.TV/Entities/Series.cs index f63580314..5e73122a0 100644 --- a/MediaBrowser.TV/Entities/Series.cs +++ b/MediaBrowser.TV/Entities/Series.cs @@ -1,4 +1,5 @@ using MediaBrowser.Model.Entities; +using System; namespace MediaBrowser.TV.Entities { @@ -6,5 +7,7 @@ namespace MediaBrowser.TV.Entities { public string TvdbId { get; set; } public string Status { get; set; } + public string AirDay { get; set; } + public string AirTime { get; set; } } } diff --git a/MediaBrowser.TV/Metadata/SeriesXmlParser.cs b/MediaBrowser.TV/Metadata/SeriesXmlParser.cs index 9fdf1e7ca..279454754 100644 --- a/MediaBrowser.TV/Metadata/SeriesXmlParser.cs +++ b/MediaBrowser.TV/Metadata/SeriesXmlParser.cs @@ -15,6 +15,14 @@ namespace MediaBrowser.TV.Metadata item.TvdbId = reader.ReadElementContentAsString() ?? string.Empty; break; + case "Airs_DayOfWeek": + item.AirDay = reader.ReadElementContentAsString() ?? string.Empty; + break; + + case "Airs_Time": + item.AirTime = reader.ReadElementContentAsString() ?? string.Empty; + break; + case "SeriesName": item.Name = reader.ReadElementContentAsString() ?? string.Empty; break;