ITaskScheduler (1 Viewer)

BigGranu

Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    54
    Home Country
    Germany Germany
    Hi Guys,

    Can anyone help me?
    What must I do to start a plugin with the TaskScheduler?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Following things are important:
    1. Check the interface's documentation in code file
    2. This is currently the only place where we use it in server, to schedule MediaLibrary imports: https://github.com/MediaPortal/Medi...aManagement/ImporterWorkerNewGen.cs#L524-L559
    3. The scheduler itself does not execute procedures, it only sends messages for due events. The plugin has to listen for those message: https://github.com/MediaPortal/Medi...aManagement/ImporterWorkerNewGen.cs#L417-L445

    If you plan own imports you can use this service.

    Just guessing, if you look for a way how to store other content in the media library (Web radio channels, cinema+programs...):
    you might consider to use the existing refresh job and add own:
    • MediaItemAspects (store data in DB)
    • MetadataExtractor (extract or collect them from remote source)
    • ResourceProvider/Accessor (provide the "raw" access to the remote source)
    Then in principle you only need to add a custom media source which will be imported in each night run.
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    54
    Home Country
    Germany Germany
    Following things are important:
    1. Check the interface's documentation in code file
    2. This is currently the only place where we use it in server, to schedule MediaLibrary imports: https://github.com/MediaPortal/Medi...aManagement/ImporterWorkerNewGen.cs#L524-L559
    3. The scheduler itself does not execute procedures, it only sends messages for due events. The plugin has to listen for those message: https://github.com/MediaPortal/Medi...aManagement/ImporterWorkerNewGen.cs#L417-L445
    I will test it again. But that's what I've tried the last days.
    I could see the start of the task, but the plugin did not get any message.
    However, I have registered as TaskId the id of the update module. :eek:

    OK. I will test it again.

    Thanks for your Help. (y)
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 Picture-in-picture DE
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many tries, and it’s not clear what I am doing that makes it work on those occasions when it does. Cannot find guidance on the site. Thanks, N. Again, if anyone knows how to do this, would be much...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Replies
    0
    Views
    1K
    MP1 MP2 Kodi Plugin DE
    Some MP2 installers contain three TV Servers: TVE3 TVE3.5 TvMosaic If the installer that you used offers you the choice of these three TV Servers, select TVE3. If you selected TVE3.5, run the installer again and select TVE3. The Kodi plugin is described as being intended for MP 2.5 and TVE3, so it should work. Unfortunately I do...
    Some MP2 installers contain three TV Servers: TVE3 TVE3.5 TvMosaic If the installer that you used offers you the choice of these...
    Hi, I have read some thread discussions but I still have not understood what is happening. I have MediaPortal 2.5. To use it...
    Replies
    2
    Views
    505
    I have an Antec Fusion Remote case with LCD display. Sorry I don't know the driver version, I have to check. But I installed the latest one for Windows 8.1.
    I have an Antec Fusion Remote case with LCD display. Sorry I don't know the driver version, I have to check. But I installed the...
    Good evening, HELP! I have an old installation because I have a family member who relies on the MiniDisplay plug in. It is...
    Replies
    6
    Views
    1K
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    I recently did a fresh install of 2.5 on a new Windows 11 PC. My previous (Windows 10) version of 2.5 gave my broadcast TV channel...
    Replies
    2
    Views
    1K
    MP1 MP2 Trakt token expiry DE
    https://forums.trakt.tv/t/the-authorization-token-is-not-renewed-every-few-days/80365
    https://forums.trakt.tv/t/the-authorization-token-is-not-renewed-every-few-days/80365
    Does anyone still use Trakt with MP1 ? Since earlier this year it seems that Trakt expires their tokens every 24 hours which...
    Replies
    15
    Views
    2K
    Top Bottom