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
Submit: Code Patches
New Feature - TvEngine: Can restrict series schedules to programs that start within a time window
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="Tuggax" data-source="post: 1225342" data-attributes="member: 161623"><p>I've been testing changes I made to MP2's TvEngine that allows the user to have more control on how the three series schedule types work (i.e <strong>EveryTimeOnThisChannel</strong>, <strong>EveryTimeOnEveryChannel</strong>, <strong>WeeklyEveryTimeOnThisChannel)</strong>.</p><p></p><p>I've added a new <strong>column</strong>/<strong>property </strong>to the TvDatabase.Schedule <strong>table</strong>/<strong>class</strong> that can be configured to further restrict the <strong>programs </strong>that get recorded for the three schedules above.</p><p></p><p>Now instead of recording <strong>ALL </strong>programs in the TV guide that match a schedule's criteria I've extended the functionality to include a <u><strong>time window</strong></u> based on the schedule's <strong>start time</strong>. </p><p></p><p>When enabled, only matching programs that fall within the schedule's time window will get recorded (and all other occurrences skipped).</p><p></p><p><strong><u><span style="color: #ff0000">This has the following benefits:</span></u></strong></p><p></p><p>1) Can set up a single schedule to record TV programs that are first aired *<strong><span style="color: #ff0000">around</span>* </strong>the same time (for example 19:00 on Sunday nights and 19:30 on weekdays), and</p><p></p><p>2) Avoids recording repeats that often air late at night or lunchtime (especially important if the TV guide has limited information like in Australia)</p><p></p><p>3) Being implemented within the TvEngine (rather than a plugin) makes for a better UI experience in both MP2 and Kodi as the series schedules <strong><u>display</u></strong> the matching programs when viewed in the UI (much easier to manage than having many "<strong>Once</strong>" schedules as I assume TvWishList would produce).</p><p></p><p>[ATTACH=full]191335[/ATTACH]</p><p></p><p>[ATTACH=full]191336[/ATTACH]</p><p></p><p>4) Being implemented in the TvEngine (rather than a plugin) means Kodi can use this new feature with only a few lines of code added to the Kodi plugin (<u><strong>which I have also done</strong></u>)</p><p></p><p><span style="color: #ff0000">*PLEASE NOTE*</span>, by default the new property is set to a default value of 0 which indicates there is <u><span style="color: #ff0000">no time restrictions</span></u> for these three types (to keep the existing functionality in MP). </p><p></p><p>Furthermore, a user can add multiple <strong><u>time window</u></strong> series schedules to selectively choose which programs to record within a single day (while avoiding others).</p><p></p><p>I've also added a new entry into the TvDatabase.Settings <strong>table/class</strong> to define this new setting and updated the SetupTV application to allow users to set it.</p><p></p><p>[ATTACH=full]191334[/ATTACH]</p><p></p><p>Please note, my code so far has NOT made any changes to the GUI so at the moment this feature is either fully switched ON or OFF for all schedules.</p><p></p><p>However, the way I have implemented the changes makes it simple to add the ability to set this for each schedule in the GUI (and at this point the setting would only act as the default setting that could be overridden.</p><p></p><p>Let me know if this feature is wanted and if so what you need me to do (as I'm not new to coding but I'm new to contributing to open source projects).</p><p></p><p>My changes:</p><p></p><p><a href="https://github.com/Tuggax/MediaPortal-1" target="_blank">GitHub - Tuggax/MediaPortal-1: MediaPortal turns your HTPC into a very advanced media center, or Home Theater PC (HTPC)</a></p><p></p><p><a href="https://github.com/Tuggax/TVServerXBMC" target="_blank">GitHub - Tuggax/TVServerXBMC: Kodi/XBMC pvr backend plugin for MediaPortal's TVServer</a></p><p></p><p>Cheers!</p></blockquote><p></p>
[QUOTE="Tuggax, post: 1225342, member: 161623"] I've been testing changes I made to MP2's TvEngine that allows the user to have more control on how the three series schedule types work (i.e [B]EveryTimeOnThisChannel[/B], [B]EveryTimeOnEveryChannel[/B], [B]WeeklyEveryTimeOnThisChannel)[/B]. I've added a new [B]column[/B]/[B]property [/B]to the TvDatabase.Schedule [B]table[/B]/[B]class[/B] that can be configured to further restrict the [B]programs [/B]that get recorded for the three schedules above. Now instead of recording [B]ALL [/B]programs in the TV guide that match a schedule's criteria I've extended the functionality to include a [U][B]time window[/B][/U] based on the schedule's [B]start time[/B]. When enabled, only matching programs that fall within the schedule's time window will get recorded (and all other occurrences skipped). [B][U][COLOR=#ff0000]This has the following benefits:[/COLOR][/U][/B] 1) Can set up a single schedule to record TV programs that are first aired *[B][COLOR=#ff0000]around[/COLOR]* [/B]the same time (for example 19:00 on Sunday nights and 19:30 on weekdays), and 2) Avoids recording repeats that often air late at night or lunchtime (especially important if the TV guide has limited information like in Australia) 3) Being implemented within the TvEngine (rather than a plugin) makes for a better UI experience in both MP2 and Kodi as the series schedules [B][U]display[/U][/B] the matching programs when viewed in the UI (much easier to manage than having many "[B]Once[/B]" schedules as I assume TvWishList would produce). [ATTACH=full]191335[/ATTACH] [ATTACH=full]191336[/ATTACH] 4) Being implemented in the TvEngine (rather than a plugin) means Kodi can use this new feature with only a few lines of code added to the Kodi plugin ([U][B]which I have also done[/B][/U]) [COLOR=#ff0000]*PLEASE NOTE*[/COLOR], by default the new property is set to a default value of 0 which indicates there is [U][COLOR=#ff0000]no time restrictions[/COLOR][/U] for these three types (to keep the existing functionality in MP). Furthermore, a user can add multiple [B][U]time window[/U][/B] series schedules to selectively choose which programs to record within a single day (while avoiding others). I've also added a new entry into the TvDatabase.Settings [B]table/class[/B] to define this new setting and updated the SetupTV application to allow users to set it. [ATTACH=full]191334[/ATTACH] Please note, my code so far has NOT made any changes to the GUI so at the moment this feature is either fully switched ON or OFF for all schedules. However, the way I have implemented the changes makes it simple to add the ability to set this for each schedule in the GUI (and at this point the setting would only act as the default setting that could be overridden. Let me know if this feature is wanted and if so what you need me to do (as I'm not new to coding but I'm new to contributing to open source projects). My changes: [URL="https://github.com/Tuggax/MediaPortal-1"]GitHub - Tuggax/MediaPortal-1: MediaPortal turns your HTPC into a very advanced media center, or Home Theater PC (HTPC)[/URL] [URL="https://github.com/Tuggax/TVServerXBMC"]GitHub - Tuggax/TVServerXBMC: Kodi/XBMC pvr backend plugin for MediaPortal's TVServer[/URL] Cheers! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Code Patches
New Feature - TvEngine: Can restrict series schedules to programs that start within a time window
Contact us
RSS
Top
Bottom