leetxjd 5 Posted October 5, 2025 Posted October 5, 2025 I uninstalled my Mediaportal LiveTV plugin for Emby attempting to successfully stream LiveTV to my Emby AppleTV (It only plays in 3 second intervals). It works on my android device - so I have given up on Apple LiveTV. I have now caused a different problem. My Emby guide - through the Media LiveTV plug-in - after re-installation is now 4 hours off. In other words, shows that will be on 4 hours from now are presented as currently available. The mediaportal guide and webmediaportal guide are correct. So, somehow the Emby guide or the Mediaportal plugin for Emby has the wrong time. The machine the server is on has the correct time AND the EMBY logs are all reporting the correct time. It is just that the guide data is not being presented correctly. Any ideas? -LeeTXJD
Luke 42077 Posted October 5, 2025 Posted October 5, 2025 Hi, have you checked the time zone settings of the client devices to ensure they are correct?
leetxjd 5 Posted October 5, 2025 Author Posted October 5, 2025 (edited) Yes - on three devices. All of those devices are the right time and time zone (On the iPad and PC, I even set the timezone manually). The guide is displayed inaccurately on each. -LeeTXJD Edited October 5, 2025 by leetxjd
Luke 42077 Posted October 5, 2025 Posted October 5, 2025 HI there, can you please provide a specific example? How to Report a Problem Thanks !
leetxjd 5 Posted October 5, 2025 Author Posted October 5, 2025 I have attached my serverlog and three snapshots demonstrating that Mediaportal has the correct guide, but the Emby guide is time shifted. If you need another log for the Mediaportal plugin (which I don't know about) let me know. And again - this started when I uninstalled my Mediaportal LiveTV plugin and then re-installed it. -LeeTXJD embyserverlog.txt
leetxjd 5 Posted October 6, 2025 Author Posted October 6, 2025 One more thing - in case it is helpful. I attempted to use a Windows restore point to roll back to a point before I somehow introduced this error. That did not work. -LeeTXJD
Luke 42077 Posted October 6, 2025 Posted October 6, 2025 @pünktchen These conversions are a little odd, no? https://github.com/MediaBrowser/MediaPortalTVPlugin/blob/master/MediaBrowser.Plugins.MediaPortal/Entities/Program.cs#L86 Do the dates come out of the media portal api as UTC ?
pünktchen 1409 Posted October 6, 2025 Posted October 6, 2025 6 hours ago, Luke said: Do the dates come out of the media portal api as UTC ? I can't remember. The docs are also not clear about that. It will take me some time to setup a test environment again. 1
Luke 42077 Posted October 6, 2025 Posted October 6, 2025 9 hours ago, pünktchen said: I can't remember. The docs are also not clear about that. It will take me some time to setup a test environment again. That code is not doing any converting. It is just taking the date value from MediaPortal and setting the Kind flag to Utc. So it kind of appears like it's assuming that it's UTC to begin with. So if that turns out to not be true, then it could be a problem.
pünktchen 1409 Posted October 6, 2025 Posted October 6, 2025 I'm surprised it works at all! The json output of MediaPortal for the start time is: "StartTime": "/Date(Unix Timestamp +Timezone Offset)/" So something like: "StartTime": "/Date(1759766400+0200)/" The System.Text.json deserializer fails to parse and convert this to a DateTime object, but Emby's deserializer manages this somehow.
Luke 42077 Posted October 6, 2025 Posted October 6, 2025 35 minutes ago, pünktchen said: I'm surprised it works at all! The json output of MediaPortal for the start time is: "StartTime": "/Date(Unix Timestamp +Timezone Offset)/" So something like: "StartTime": "/Date(1759766400+0200)/" The System.Text.json deserializer fails to parse and convert this to a DateTime object, but Emby's deserializer manages this somehow. OK. At some point we might want to switch to System.Text.Json though.
pünktchen 1409 Posted October 7, 2025 Posted October 7, 2025 @leetxjdPlease test if the attached plugin version works for you: MediaPortal.2.0.1.0.zip
leetxjd 5 Posted October 7, 2025 Author Posted October 7, 2025 I can report that the plugin you posted works - the guide now displays correctly (on web, ios, and android). Thank you very much. 1
Luke 42077 Posted October 7, 2025 Posted October 7, 2025 2 hours ago, pünktchen said: @leetxjdPlease test if the attached plugin version works for you: MediaPortal.2.0.1.0.zip @pünktchencan you submit a PR with the fix? Thanks !
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