[Evaluate] New Feature - TvEngine: Can restrict series schedules to programs that start within a time window (1 Viewer)

Tuggax

Portal Member
June 16, 2017
5
9
Home Country
Australia Australia
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 EveryTimeOnThisChannel, EveryTimeOnEveryChannel, WeeklyEveryTimeOnThisChannel).

I've added a new column/property to the TvDatabase.Schedule table/class that can be configured to further restrict the programs that get recorded for the three schedules above.

Now instead of recording ALL programs in the TV guide that match a schedule's criteria I've extended the functionality to include a time window based on the schedule's start time.

When enabled, only matching programs that fall within the schedule's time window will get recorded (and all other occurrences skipped).

This has the following benefits:

1) Can set up a single schedule to record TV programs that are first aired *around* 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 display the matching programs when viewed in the UI (much easier to manage than having many "Once" schedules as I assume TvWishList would produce).

upload_2017-6-28_17-52-18.png


upload_2017-6-28_17-52-56.png


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 (which I have also done)

*PLEASE NOTE*, by default the new property is set to a default value of 0 which indicates there is no time restrictions for these three types (to keep the existing functionality in MP).

Furthermore, a user can add multiple time window 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 table/class to define this new setting and updated the SetupTV application to allow users to set it.

upload_2017-6-28_17-35-7.png


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:

GitHub - Tuggax/MediaPortal-1: MediaPortal turns your HTPC into a very advanced media center, or Home Theater PC (HTPC)

GitHub - Tuggax/TVServerXBMC: Kodi/XBMC pvr backend plugin for MediaPortal's TVServer

Cheers!
 

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,384
    2,639
    Stuttgart
    Home Country
    Germany Germany
    Country flag
    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).
    Great job (y) Would be good, if you add a GUI setting to the recording dialog in EPG. What you need:
    • Write rights in GitHub to MP2 project --> @morpheus_xx
    • Create an own branch, which is cloned from WiP2.1.1
    • Commit your changes to your branch and after code review it can merged back into WiP2.1.1
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 Free text recording DE
    The base products (MP1, MP2, TV Server) do not support this. But there is a user-written plugin for TV Server called TvWishList that may do some or most of what you want. I say "may" because I have not used it myself. TvWishList is discussed in this thread (135 pages!). Note: the author of TvWishList has not visited this web site...
    The base products (MP1, MP2, TV Server) do not support this. But there is a user-written plugin for TV Server called TvWishList...
    Hi there, I am looking to move from tvheadend to mediaportal (changing from Linux to windows server, when the new hardware...
    Replies
    1
    Views
    269
    That 's what I see. I've retired from software development in favour of getting a 1910 gaff cutter back sailing, and as that development was in DataFlex I doubt that it's relevant to MP development.
    That 's what I see. I've retired from software development in favour of getting a 1910 gaff cutter back sailing, and as that...
    The setting up of scheduled recordings seems to be the weakest part of MP2 - in fact I'd go as far as to say one aspect of it is a...
    Replies
    2
    Views
    497
    Thank you for performing this test, and confirming @joecrow 's suspicion as to the cause of the problem. In principle the same problem exists with other EPG sources, such as the broadcast EPG that I use with DVB-T/T2. When a programme first appears in the EPG (7 days ahead of its broadcast time), some programmes have a generic...
    Thank you for performing this test, and confirming @joecrow 's suspicion as to the cause of the problem. In principle the same...
    TV Server 1.25. Windows 10. This has been an issue for many years, if not since inception, and I hoped it would be resolved...
    Replies
    10
    Views
    1K
    Uninstalled and then removed all Media Portal related folders. Installed new copy of Media Portal and made as few changes as possible to have a list of TV channels. Still failed to scroll with mouse wheel on the EPG table. After experimenting with mouse settings, it appears that a setting of one line at a time vs two lines at a...
    Uninstalled and then removed all Media Portal related folders. Installed new copy of Media Portal and made as few changes as...
    The TV Guide schedule will only scroll with keyboard up and down arrows and not the mouse wheel. Why is this the case? The Live TV...
    Replies
    2
    Views
    664
    Thanks CyberSimian, I'll see what I can find at the Green Button web site.
    Thanks CyberSimian, I'll see what I can find at the Green Button web site.
    Hi Folks, I have a Dell XPS Desktop computer that I've had an Analog Angel USB TV Tuner hooked up to for the past 5+ years that...
    Replies
    7
    Views
    1K
    Top Bottom