Jump to content

EPG Update Fails - Logs included


francoislepage
Go to solution Solved by pünktchen,

Recommended Posts

francoislepage

Hello,

 

Emby server can't retreive the EPG information correctly from MPExtended (0.5.4).

 

MPExtended is working properly and Plex Media Sever (via the Medial Portal Channel), can retreive the EPG information.

 

EPG is grabbed from ScheduleDirect from MediaPortal 1 TV Server.

 

WebMediaPortal also display the EPG correctly.

 

I enabled logging and I am getting the following error (see emby server log):

 

Any help would be greatly appreciated.

 

Thanks!

 

Emby Server Logs

 

2015-10-11 11:23:33.4183 Info - App: HttpClientManager GET: http://localhost:4322/MPExtended/TVAccessService/json/GetProgramsDetailedForChannel?channelId=14&starttime=2015-10-11T10:23:33&endtime=2015-10-25T10:23:33
2015-10-11 11:23:33.4495 Error - App: Error getting programs for channel WCFE-HD
    *** Error Report ***
    Version: 3.0.5724.6
    Command line: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: False
    Program data path: C:\Users\fnk\AppData\Roaming\Emby-Server
    Application Path: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Input string was not in a correct format.
    System.FormatException
     at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
     at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
     at MediaBrowser.Plugins.MediaPortal.Services.Proxies.TvServiceProxy.<>c__DisplayClassc.<GetPrograms>b__b(Program p)
     at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
     at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<RefreshChannelsInternal>d__c7.MoveNext()

Link to comment
Share on other sites

pünktchen

Which version of Emby server?

Which version of the MediaPortal plugin?

Does it only happen with this channel from your log?

Have you edited your log sequence at GET http or this the complete url request?

Can you post a screenshot of the channel details from TVServer?(right click on the channel - edit)

Link to comment
Share on other sites

francoislepage

Hi there!

 

Thanks for your answer.

 

Here is the information requested.

 

  • Emby version  3.0.5724.6
  • MediaPortalTVPlugin 1.2.9.529

 

This happens for every single channel in the channel group "All Channels" (that same log sequence repeats for every channel, the log extract is unmodified... I wrapped it in a code tag hereafter).  Channels load fine in Plex (through mediaportal channel) and in WebMediaPortal.

 

I'm wondering if that has something to do the the UTC to local time conversion (regional setting set to English/Canada, time in 24h mode)... (line 105 and 106 of MediaPortalTVPlugin/MediaPortalTVPlugin/Services/Proxies/TVServiceProxy.cs).  Just a thought.

 

Thanks!

 

 

561b0f77ecb20_wcfechanedit.jpg

Emby Server Logs

2015-10-11 11:23:33.4183 Info - App: HttpClientManager GET: http://localhost:4322/MPExtended/TVAccessService/json/GetProgramsDetailedForChannel?channelId=14&starttime=2015-10-11T10:23:33&endtime=2015-10-25T10:23:33
2015-10-11 11:23:33.4495 Error - App: Error getting programs for channel WCFE-HD
    *** Error Report ***
    Version: 3.0.5724.6
    Command line: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: False
    Program data path: C:\Users\fnk\AppData\Roaming\Emby-Server
    Application Path: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Input string was not in a correct format.
    System.FormatException
     at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
     at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
     at MediaBrowser.Plugins.MediaPortal.Services.Proxies.TvServiceProxy.<>c__DisplayClassc.<GetPrograms>b__b(Program p)
     at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
     at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<RefreshChannelsInternal>d__c7.MoveNext()

561b1016e805e_codempplugin.jpg

Link to comment
Share on other sites

francoislepage

Here is an extract of the output of the http GET

GET: http://localhost:4322/MPExtended/TVAccessService/json/GetProgramsDetailedForChannel?channelId=14&starttime=2015-10-11T10:23:33&endtime=2015-10-25T10:23:33

returns

[{"ChannelId":14,"Description":" (First Aired: 09\/10\/2015)","DurationInMinutes":30,"EndTime":"\/Date(1444575600000-0400)\/","Id":1,"IsScheduled":false,"StartTime":"\/Date(1444573800000-0400)\/","Title":"New York Now","Classification":"TV-G","EpisodeName":"-","EpisodeNum":"1541","EpisodeNumber":"EP00918379.1541.-","EpisodePart":"-","Genre":"Public affairs","HasConflict":false,"IsChanged":false,"IsPartialRecordingSeriesPending":false,"IsRecording":false,"IsRecordingManual":false,"IsRecordingOnce":false,"IsRecordingOncePending":false,"IsRecordingSeries":false,"IsRecordingSeriesPending":false,"Notify":false,"OriginalAirDate":"\/Date(1444363200000-0400)\/","ParentalRating":7,"SeriesNum":"EP00918379","StarRating":-1},{"ChannelId":14,"Description":" (First Aired: 09\/10\/2015) (HDTV)","DurationInMinutes":30,"EndTime":"\/Date(1444577400000-0400)\/","Id":2,"IsScheduled":false,"StartTime":"\/Date(1444575600000-0400)\/","Title":"Charlie Rose -- The Week","Classification":"","EpisodeName":"-","EpisodeNum":"313","EpisodeNumber":"EP01747685.313.-","EpisodePart":"-","Genre":"Public affairs","HasConflict":false,"IsChanged":false,"IsPartialRecordingSeriesPending":false,"IsRecording":false,"IsRecordingManual":false,"IsRecordingOnce":false,"IsRecordingOncePending":false,"IsRecordingSeries":false,"IsRecordingSeriesPending":false,"Notify":false,"OriginalAirDate":"\/Date(1444363200000-0400)\/","ParentalRating":-1,"SeriesNum":"EP01747685","StarRating":-1},{"ChannelId":14,"Description":" (New: 11\/10\/2015)","DurationInMinutes":30,"EndTime":"\/Date(1444579200000-0400)\/","Id":3,"IsScheduled":false,"StartTime":"\/Date(1444577400000-0400)\/","Title":"Age Wise","Classification":"","EpisodeName":"-","EpisodeNum":"102","EpisodeNumber":"EP01919300.102.-","EpisodePart":"-","Genre":"Community","HasConflict":false,"IsChanged":false,"IsPartialRecordingSeriesPending":false,"IsRecording":false,"IsRecordingManual":false,"IsRecordingOnce":false,"IsRecordingOncePending":false,"IsRecordingSeries":false,"IsRecordingSeriesPending":false,"Notify":false,"OriginalAirDate":"\/Date(1444536000000-0400)\/","ParentalRating":-1,"SeriesNum":"EP01919300","StarRating":-1},{"ChannelId":14,"Description":"Couples deal with a partner's diagnosis of early Alzheimer's. (First aired 21\/06\/2014)","DurationInMinutes":30,"EndTime":"\/Date(1444581000000-0400)\/","Id":4,"IsScheduled":false,"StartTime":"\/Date(1444579200000-0400)\/","Title":"The Sum Total of Our Memory: Facing Alzheimer's Together","Classification":"TV-G","EpisodeName":"-","EpisodeNum":"-","EpisodeNumber":"-.-.-","EpisodePart":"-","Genre":"Special","HasConflict":false,"IsChanged":false,"IsPartialRecordingSeriesPending":false,"IsRecording":false,"IsRecordingManual":false,"IsRecordingOnce":false,"IsRecordingOncePending":false,"IsRecordingSeries":false,"IsRecordingSeriesPending":false,"Notify":false,"OriginalAirDate":"\/Date(1403323200000-0400)\/","ParentalRating":7,"SeriesNum":"-","StarRating":-1},{"ChannelId":14,"Description":"Heirs to the throne are prepared for the monarchy. (First aired 28\/07\/2013)","DurationInMinutes":90,"EndTime":"\/Date(1444586400000-0400)\/","Id":5,"IsScheduled":false,"StartTime":"\/Date(1444581000000-0400)\/","Title":"Born To Royalty","Classification":"","EpisodeName":"-","EpisodeNum":"-","EpisodeNumber":"-.-.-","EpisodePart":"- <and more...>
Link to comment
Share on other sites

pünktchen

I think the problem is SeriesNum. MPExtended delivers a string where Emby expects an Integer. But your series number has "EP" at the beginning - not possible to convert! What i can do is either ignore SeriesNum when it has letters in it or try to remove the letters and convert the remaining numbers to an integer. I think i will try the second route, but more than likely you have to be patient until weekend.

  • Like 1
Link to comment
Share on other sites

francoislepage

Hi,

 

This makes sense!

 

Before you do any kind of heavy lifting, can the SeriesNum parameter be commented out so I can try without it and confirm that the bug went away?

 

Please advise,

 

Thanks

Link to comment
Share on other sites

pünktchen

Hi,

 

This makes sense!

 

Before you do any kind of heavy lifting, can the SeriesNum parameter be commented out so I can try without it and confirm that the bug went away?

 

Please advise,

 

Thanks

Only in the code itself and you have to recompile the plugin

or take MySQLWorkbench and delete the seriesnum info from tvservers program table.

Link to comment
Share on other sites

francoislepage

Hi,

 

I did the update on numSeries columns and some programs did appear indeed.  Great!

 

However, there are still some channels that do not update.

 

I'm getting these errors :

 

Thanks!

 

2015-10-12 15:06:28.9687 Error - App: Error in Live TV Service Provider
    *** Error Report ***
    Version: 3.0.5724.6
    Command line: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: False
    Program data path: C:\Users\fnk\AppData\Roaming\Emby-Server
    Application Path: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Object reference not set to an instance of an object.
    System.NullReferenceException
     at MediaBrowser.Server.Implementations.LiveTv.ProgramImageProvider.<GetImage>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at MediaBrowser.Providers.Manager.ItemImageProvider.<RefreshFromProvider>d__12.MoveNext()

Edited by francoislepage
Link to comment
Share on other sites

pünktchen

Hi,

 

I did the update on numSeries columns and some programs did appear indeed. Great!

 

However, there are still some channels that do not update.

 

I'm getting these errors :

 

Thanks!

 

2015-10-12 15:06:28.9687 Error - App: Error in Live TV Service Provider

*** Error Report ***

Version: 3.0.5724.6

Command line: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe

Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1

Processor count: 4

64-Bit OS: True

64-Bit Process: False

Program data path: C:\Users\fnk\AppData\Roaming\Emby-Server

Application Path: C:\Users\fnk\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe

Object reference not set to an instance of an object.

System.NullReferenceException

at MediaBrowser.Server.Implementations.LiveTv.ProgramImageProvider.<GetImage>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Providers.Manager.ItemImageProvider.<RefreshFromProvider>d__12.MoveNext()

Although these errors are very annoying in the logs, they do not prevent a succesfull import of program data.

@@Luke MediaPortal doesn't provide program images. That's why there is

public Task<ImageStream> GetProgramImageAsync(string programId, string channelId, CancellationToken cancellationToken) { return null; }
What else can be done to get rid of these errors in the logs?
Link to comment
Share on other sites

francoislepage

Hi again,

 

So I tested it.

 

It works for 30% of the channels... I thought it would be useful to dump the EPG data in a CSV file... I have a feeling there might be some other things in there causing trouble.

 

I'm still getting some of the same errors.  Maybe it has something to the with the episode numbers containing letters sometimes (see ID 4028 in the attached file)?

 

Thanks!

 

Link to CSV file

2015-10-12 20:48:03.9596 Info - App: HttpClientManager GET: http://localhost:4322/MPExtended/TVAccessService/json/GetProgramsDetailedForChannel?channelId=16&starttime=2015-10-12T19:48:03&endtime=2015-10-16T19:48:03
2015-10-12 20:48:03.9752 Error - App: Error getting programs for channel WCFE-SD
	*** Error Report ***
	Version: 3.0.5724.6
	Command line: C:\Users\fnk\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service
	Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\fnk\AppData\Roaming\Emby-Server
	Application Path: C:\Users\fnk\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe
	Input string was not in a correct format.
	System.FormatException
	   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
	   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
	   at MediaBrowser.Plugins.MediaPortal.Services.Proxies.TvServiceProxy.<>c__DisplayClassc.<GetPrograms>b__b(Program p)
	   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
	   at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<RefreshChannelsInternal>d__c7.MoveNext()
Edited by francoislepage
Link to comment
Share on other sites

pünktchen

The "-" for most of your SeriesNum and EpisodeNum, does it come from your csv Export or is it really in your SQL database?

Link to comment
Share on other sites

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...