home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Trakt.tv LiveTV scrobble Development help request.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1221339" data-attributes="member: 48495"><p>The logic between recordings and live tv is different for a reason:</p><p>A recording is usually created for a single program. So in this case we can set the program's title as <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/UI/TV/SlimTvInterfaces/ResourceProvider/SlimTvMediaItemBuilder.cs#L114-L129" target="_blank">media item title</a>.</p><p></p><p>For LiveTV it's different: we are always using timeshift, so you can pause at any moment and continue watch hours later. This means, the "current running program" can be different to the "program at current watching position". This is even more complicated if you zap between channels: the card tunes a new channel, the stream and timeshift buffer will remain. We internally keep a list of all zappings (time + channel) here: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/UI/TV/SlimTvClient/TVHandler/SlimTvHandler.cs#L245-L255" target="_blank">MediaPortal-2/SlimTvHandler.cs at 196b021d29f643c8d01600c33df6b636206226da · MediaPortal/MediaPortal-2 · GitHub</a>. You could find the current running "program part" by checking the list of TimeshiftContexts (we do this also to create "chapters", the player can seek back to the channel change positions).</p><p></p><p>If you plan to sync LiveTV with trakt you should consider this architecture and more important to build a good rule what you want to set "watching" and "watched" (i.e. zapping for few seconds on a movie, should it be scrobbled?)</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1221339, member: 48495"] The logic between recordings and live tv is different for a reason: A recording is usually created for a single program. So in this case we can set the program's title as [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/UI/TV/SlimTvInterfaces/ResourceProvider/SlimTvMediaItemBuilder.cs#L114-L129']media item title[/URL]. For LiveTV it's different: we are always using timeshift, so you can pause at any moment and continue watch hours later. This means, the "current running program" can be different to the "program at current watching position". This is even more complicated if you zap between channels: the card tunes a new channel, the stream and timeshift buffer will remain. We internally keep a list of all zappings (time + channel) here: [URL="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/UI/TV/SlimTvClient/TVHandler/SlimTvHandler.cs#L245-L255"]MediaPortal-2/SlimTvHandler.cs at 196b021d29f643c8d01600c33df6b636206226da · MediaPortal/MediaPortal-2 · GitHub[/URL]. You could find the current running "program part" by checking the list of TimeshiftContexts (we do this also to create "chapters", the player can seek back to the channel change positions). If you plan to sync LiveTV with trakt you should consider this architecture and more important to build a good rule what you want to set "watching" and "watched" (i.e. zapping for few seconds on a movie, should it be scrobbled?) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt.tv LiveTV scrobble Development help request.
Contact us
RSS
Top
Bottom