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 1
Development
Improvement Suggestions
TV Guide and Scheduling
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="dvdfreak" data-source="post: 160839" data-attributes="member: 21313"><p><u>The story so far:</u></p><p></p><p>There has been some talk here about smart scheduling before, and how changes to the scheduler affect MediaPortal.</p><p></p><p>Having tweaked the system currently in MediaPortal I have come to realize there's a lot of interdependant code in there. Scheduling logic is duplicated in many places for example, and everyone (plugins, TV plugin, remote clients,...) accesses the MediaPortal TV library and scheduling database directly.</p><p></p><p><u>The (possible) future:</u></p><p></p><p>What I would like to propose is a TV-guide and scheduling subsystem that would talk to the outside world over a web-service.</p><p></p><p>The idea is to keep the guide and scheduling stuff separate from other recording and tuning stuff. Currently this line is very fuzzy and I think we could get a much more reliable system if we keep them clearly apart. One sub-system can the be changed/fixed/improved much more easily with much less impact to the rest.</p><p></p><p>Using a web-service is a very conscious design choice since I would like to keep this guide/scheduling-service totally on the server so MediaPortal clients would not contain any duplicate code and would also not access the database remotely nor directly.</p><p></p><p>Using WCF (.NET 3.0) it's possible to wrap all the above in a single window service, just like the TV service itself is a service today. Or we could combine the two if the idea of two windows services is not to everyone's liking.</p><p></p><p>The windows service would host the web service (meaning there's no need to have IIS on your media server) and could also take care of importing XMLTV data when it appears. If one does not use XMLTV and has the guide data come in over DVB e.g., the TV service could feed the Guide service the program data. In case you have NO guide data, the guide will simply remain empty and only the scheduling logic will be handled.</p><p></p><p>Channels could be identified to the outside world using a GUID and in the MediaPortal database we can link the rest of the channel data (for tuning e.g.) to this totally unique ID.</p><p></p><p>Schedules can be completely managed by the TV-guide and scheduling service, all the TV service would have to do is get the list of upcoming recordings from the scheduling service and simply record what is queued (if it can).</p><p></p><p><u>Implementation:</u></p><p></p><p>Since I propose this as a separate sub-system it would be easy to develop this side-by-side and only switch the rest of MediaPortal over to it when we feel it is stable enough to handle the job. This could definately minimize the impact. Unfortunately it would eventually mean a database change of course, at the moment of switching.</p><p></p><p><u>Feedback:</u></p><p></p><p>I hope to get some feedback on this idea <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Especially from the MP developers. What's the feeling towards such an overhaul of the TV library and scheduling system?</p><p></p><p>Conflicting schedules is an interesting issue I'd like some feedback on. This would most likely be the responsability of the TV service rather than the scheduling subsytem, since only the TV service knows how many recording cards there are to record two programs simultaniously.</p><p></p><p>So the scheduling service would provide the optimistic handling of everything, assuming everything is recordable all the time, and the TV service itself can provide the logic to add a conflicing "flag" to the upcoming recordings.</p></blockquote><p></p>
[QUOTE="dvdfreak, post: 160839, member: 21313"] [u]The story so far:[/u] There has been some talk here about smart scheduling before, and how changes to the scheduler affect MediaPortal. Having tweaked the system currently in MediaPortal I have come to realize there's a lot of interdependant code in there. Scheduling logic is duplicated in many places for example, and everyone (plugins, TV plugin, remote clients,...) accesses the MediaPortal TV library and scheduling database directly. [u]The (possible) future:[/u] What I would like to propose is a TV-guide and scheduling subsystem that would talk to the outside world over a web-service. The idea is to keep the guide and scheduling stuff separate from other recording and tuning stuff. Currently this line is very fuzzy and I think we could get a much more reliable system if we keep them clearly apart. One sub-system can the be changed/fixed/improved much more easily with much less impact to the rest. Using a web-service is a very conscious design choice since I would like to keep this guide/scheduling-service totally on the server so MediaPortal clients would not contain any duplicate code and would also not access the database remotely nor directly. Using WCF (.NET 3.0) it's possible to wrap all the above in a single window service, just like the TV service itself is a service today. Or we could combine the two if the idea of two windows services is not to everyone's liking. The windows service would host the web service (meaning there's no need to have IIS on your media server) and could also take care of importing XMLTV data when it appears. If one does not use XMLTV and has the guide data come in over DVB e.g., the TV service could feed the Guide service the program data. In case you have NO guide data, the guide will simply remain empty and only the scheduling logic will be handled. Channels could be identified to the outside world using a GUID and in the MediaPortal database we can link the rest of the channel data (for tuning e.g.) to this totally unique ID. Schedules can be completely managed by the TV-guide and scheduling service, all the TV service would have to do is get the list of upcoming recordings from the scheduling service and simply record what is queued (if it can). [u]Implementation:[/u] Since I propose this as a separate sub-system it would be easy to develop this side-by-side and only switch the rest of MediaPortal over to it when we feel it is stable enough to handle the job. This could definately minimize the impact. Unfortunately it would eventually mean a database change of course, at the moment of switching. [u]Feedback:[/u] I hope to get some feedback on this idea :) Especially from the MP developers. What's the feeling towards such an overhaul of the TV library and scheduling system? Conflicting schedules is an interesting issue I'd like some feedback on. This would most likely be the responsability of the TV service rather than the scheduling subsytem, since only the TV service knows how many recording cards there are to record two programs simultaniously. So the scheduling service would provide the optimistic handling of everything, assuming everything is recordable all the time, and the TV service itself can provide the logic to add a conflicing "flag" to the upcoming recordings. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
TV Guide and Scheduling
Contact us
RSS
Top
Bottom