Jump to content

Guide Data missing or not displaying


Recommended Posts

Posted

are the dates also marked as UTC with the Kind property?

Posted

Here is the Channel load code

 

foreach (VdrChannel channel in response.Channels)

{

logger.Info("[VDR LiveTV] GetChannelsAsync data | ID {0} | CHANTYPE {1} | NAME {2} | NUMBER {3} | HASIMAGE {4} | IMAGEURL {5} ...", channel.channel_id, chann

el.is_radio ? ChannelType.Radio : ChannelType.TV, channel.name, channel.number.ToString(), channel.image , channel.image ? string.Format("{0}/channels/image/{1}", baseUrl, ch

annel.channel_id) : null);

channels.Add(new ChannelInfo()

{

Id = channel.channel_id,

ChannelType = channel.is_radio ? ChannelType.Radio : ChannelType.TV,

Name = channel.name,

Number = channel.number.ToString(),

HasImage = channel.image,

ImageUrl = channel.image ? string.Format("{0}/channels/image/{1}", baseUrl, channel.channel_id) : null

});

}

}

 

logger.Info("[VDR LiveTV] GetChannelsAsync --- END --- ");

return channels;

}

 

Here is the Program Info load

 

if (response.Events != null)

{

logger.Info("[VDR LiveTV] GetEventAsync --- START --- ");

foreach (VdrEvent ev in response.Events)

{

logger.Info("[VDR LiveTV] GetEventAsync data | CHANNELID {0} | NAME {1} | STARTDATE {2} | ENDDATE {3} | EPTITLE {4} | OVERVIEW {5} | HASIMAGE {6} | IMAGEU

RL {7} | Id {8} ...", ev.channel, ev.title, Utils.UnixTimeStampToDateTime(ev.start_time), Utils.UnixTimeStampToDateTime(ev.start_time + ev.duration), ev.short_text, ev.descri

ption, ev.images, (ev.images > 0) ? string.Format("{0}/events/image/{1}/1", baseUrl, ev.id) : null, ev.id.ToString());

events.Add(new ProgramInfo()

{

ChannelId = ev.channel,

Id = ev.id.ToString(),

Overview = ev.description,

StartDate = Utils.UnixTimeStampToDateTime(ev.start_time).ToUniversalTime(),

EndDate = Utils.UnixTimeStampToDateTime(ev.start_time + ev.duration).ToUniversalTime(),

// Genres = null,

OriginalAirDate = null,

Name = ev.title,

OfficialRating = null,

CommunityRating = null,

EpisodeTitle = ev.short_text,

// Audio = null,

IsHD = null,

IsRepeat = false,

IsSeries = true,

IsNews = ev.description.ToLower().Contains("news"),

IsMovie = ev.description.ToLower().Contains("movie"),

IsKids = ev.description.ToLower().Contains("kids"),

IsSports = ev.description.ToLower().Contains("sports"),

// Note this is not perfect

// VDR allows multiple event images but

// Emby only allows one

// we are providing the first image if it exists

HasImage = (ev.images > 0),

ImageUrl = (ev.images > 0) ? string.Format("{0}/events/image/{1}/1", baseUrl, ev.id) : null

});

}

logger.Info("[VDR LiveTV] GetEventAsync --- END --- ");

}

Posted

screen showing missing data

post-37739-0-75969900-1475627383_thumb.png

Posted (edited)

With missing guide data in the middle (like some how some of it never got into the database...)

post-37739-0-18045300-1475627505_thumb.png

post-37739-0-13365300-1475630357_thumb.png

Edited by domenic
Posted

Is the source public so I can look at it?

Posted

Is the ChannelId that you're setting into the programs exactly the same as the Id property you're setting in GetChannelsAsync ?

Posted

Is the ChannelId that you're setting into the programs exactly the same as the Id property you're setting in GetChannelsAsync ?

According to the log file, you will see I echo out the channel it is getting the data for (first field in log GetProgramsAsync) then for each event the CHANNELID

 

Below is an example:

 

2016-10-04 14:49:22.4556 Info App: [VDR LiveTV] GetProgramsAsync | S91.0W-256-30-196 | 10/4/2016 1:49:22 PM - 10/6/2016 1:49:22 PM ...

2016-10-04 14:49:22.5020 Info App: [VDR LiveTV] GetEventAsync --- START ---

2016-10-04 14:49:22.5020 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-30-196 | NAME Bondi Vet | STARTDATE 10/4/2016 2:00:00 PM | ENDDATE 10/4/2016 3:00:00

PM | EPTITLE | OVERVIEW Series. Dr. Chris Brown, Steve Oemcke. (2015) Chris travels to remote Christmas Island to help a seabird named Bill that is unable to fly. (CC) (S

tereo)

 

Rating: PG []

Posted

Here is the data for the missing section of my second screen shot:

 

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME Che Dio ci aiuti | STARTDATE 10/4/2016 7:00:00 PM | ENDDATE 10/4/2016

8:00:00 PM | EPTITLE | OVERVIEW Series. Elena Sofia Ricci, Valeria Fabrizi, Massimo Poggio. (Stereo)

 

Rating: G

 

Program ID: 121048300000

Original Air Date: Thu Dec 15 2011 | HASIMAGE 0 | IMAGEURL | Id 8479 ...

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME Empire | STARTDATE 10/4/2016 8:00:00 PM | ENDDATE 10/4/2016 9:00:00 PM

| EPTITLE | OVERVIEW Series. Alexandre Nero, LŦlia Cabral, Vanessa GiÆcomo. JosØ Alfredo deals with his marriage, his love affair and the dispute between his children.

 

Rating: PG []

 

Program ID: 123889130000

Original Air Date: Mon Jul 21 2014 | HASIMAGE 0 | IMAGEURL | Id 8480 ...

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME In the Heart of Gold Country | STARTDATE 10/4/2016 9:00:00 PM | ENDDAT

E 10/4/2016 10:00:00 PM | EPTITLE | OVERVIEW Series. In one of North America's largest gold-producing areas, Croatians dominate a tiny portion of the land.

 

Rating: PG []

 

Program ID: 106873380000

Original Air Date: Sat Oct 09 2004 | HASIMAGE 0 | IMAGEURL | Id 8899 ...

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME Just Arrived | STARTDATE 10/4/2016 10:00:00 PM | ENDDATE 10/4/2016 11:

00:00 PM | EPTITLE | OVERVIEW Series. Three young immigrant families struggle to create a new life in Canada.

 

Rating: PG []

 

Program ID: 106873490000

Original Air Date: Sat Oct 30 2004 | HASIMAGE 0 | IMAGEURL | Id 8900 ...

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME Paid Programming | STARTDATE 10/4/2016 11:00:00 PM | ENDDATE 10/4/2016

11:30:00 PM | EPTITLE | OVERVIEW -. Paid programming. (CC)

 

Program ID: 100000010000 | HASIMAGE 0 | IMAGEURL | Id 8483 ...

2016-10-04 14:50:05.3791 Info App: [VDR LiveTV] GetEventAsync data | CHANNELID S91.0W-256-13-215 | NAME Paid Programming | STARTDATE 10/4/2016 11:30:00 PM | ENDDATE 10/5/2016

12:00:00 AM | EPTITLE | OVERVIEW -. Paid programming. (CC)

Posted

does your emby test server have a public url? can you pm it to me? thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...