[Pending] TvEvent notification of Recordings (1 Viewer)

twemperor

MP Donator
  • Premium Supporter
  • March 10, 2010
    103
    28
    United States of America United States of America
    I would like to propose a patch which might merit a little discussion.

    In the current (1.1.2) version, the TvEvents for Recording Starting, Started, and Ended are fired from the built-in scheduler. Additionally, there are arguments in the TvEvent for the recording and schedule information to identify the specific recording and the schedule causing the event. This is a logical organization.

    However, Recordings can be initiated by other plug-ins, such as 4TheRecord. As I understand it, many if not most users opt for a scheduler plugin of some kind. In this case, the recording TvEvents are never fired, and as such, other plugins are not aware of these events occurring. In the case of a blaster plugin, the startzapchannel event is still fired, but in the case of the Comskip Launcher plugin the recording start and end events are never seen. My personal interest is in refining a tuner plugin to identify recording and timeshift end periods to turn off a set top box to conserve power/heat.

    The patch I've attached is to move the TvEvent firing for recording events back into the TvController directly (with other events) and out of the scheduler. It should behave the same in terms of timing, however some specific argument information is lost- namely the recording and schedule details. These could be parameters passed in to the TvController, or these arguments could be removed.

    These events are not used by anything internal to MediaPortal (client or TvServer), and the plugins I know about which do use these events (only ComskipLauncher) do not need the arguments.

    I would like to suggest that these arguments be passed in to the TvController to keep the information available, but I wasn't sure how much of an API change I should suggest in a patch.

    Thoughts?
     

    Attachments

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ltfearme Exception thrown when SetText in GUI Notification dialog Titan Skin Feedback 3
    morpheus_xx [Finished] [MP2-792 ] Notification symbol not reachable with remote MediaPortal 2 28
    doskabouter Notification mail for new posts on watched threads Website/Forum/Wiki Feedback 5
    1gkar LiveTV Records Causing 100% Drive Activity Television (MyTV frontend and TV-Server) 9
    toricred Recordings Change : to _ in Series Name General 0
    P Recording films that have an "intermission" General 3
    H MP2 database won't keep in synch with recordings General 8
    toricred Only Show Actual Recordings General 1
    ajs How recreate Recording thumbs TV-Server 4
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    CyberSimian [Proposal] Tool to display time of next recording MediaPortal 1 0
    Golf4 TV-Records werden als Audio-Files importiert ? Allgemeines Support- und Diskussionsforum 0
    R [solved] Unable to delete single recording General 2
    R Correct setting for recordings on shared folder General 0
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    S Shortcuts MP1 My Recorded & TV Guide General 10
    F How to reset tv recordings database General 5
    P Recordings not showing up unless re-imported and not possible to delete General 0
    X Recording import hängt Allgemeines Support- und Diskussionsforum 0
    F Recording starts at second time only MediaPortal 1 Talk 6
    T TV Recording Schedule General 2
    T Unwanted recording Newcomers Forum 18
    bta489 [solved] DVB-T2 Recordings: Sometimes no Audio after muxing with mkvmerge Tools and other software 2
    N Play a TV recording needs a double selection - twice ok on remote Television (MyTV frontend and TV-Server) 2
    Similar threads

























    Top Bottom