Luke 37071 Posted October 4, 2016 Share Posted October 4, 2016 are the dates also marked as UTC with the Kind property? Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 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 --- "); } Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 zip of the load for 50 channels server.zip Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 screen showing missing data Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 (edited) With missing guide data in the middle (like some how some of it never got into the database...) Edited October 5, 2016 by domenic Link to comment Share on other sites More sharing options...
Luke 37071 Posted October 5, 2016 Share Posted October 5, 2016 Is the source public so I can look at it? Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 I have just pushed this to git.... https://github.com/DomenicTroilo/Emby-VDRLiveTV-Plugin.git Domenic Link to comment Share on other sites More sharing options...
Luke 37071 Posted October 5, 2016 Share Posted October 5, 2016 Is the ChannelId that you're setting into the programs exactly the same as the Id property you're setting in GetChannelsAsync ? Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 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 [] Link to comment Share on other sites More sharing options...
domenic 33 Posted October 5, 2016 Author Share Posted October 5, 2016 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) Link to comment Share on other sites More sharing options...
Luke 37071 Posted October 5, 2016 Share Posted October 5, 2016 does your emby test server have a public url? can you pm it to me? thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now