ITaskScheduler (1 Viewer)

BigGranu

Development Group
  • Team MediaPortal
  • February 7, 2013
    238
    172
    50
    Home Country
    Germany Germany
    Country flag
    Hi Guys,

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

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,752
    7,115
    Home Country
    Germany Germany
    Country flag
    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

    Development Group
  • Team MediaPortal
  • February 7, 2013
    238
    172
    50
    Home Country
    Germany Germany
    Country flag
    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

    Ops. I disabled the Skin Translations plugin. That's all it was. :ROFLMAO:
    Ops. I disabled the Skin Translations plugin. That's all it was. :ROFLMAO:
    So I was stripping away some unused plugins from Mediaportal. Not sure exactly what change caused it exactly, but now instead of...
    Replies
    1
    Views
    286
    I'm US Eastern (-5 to -4 with DST). I also don't sleep normally, though, so when I'm up is anyone's guess. I got it to build a setup and install on my laptop. Now I can test skin stuff and really get my hands dirty. Nereus is gorgeous, but definitely not made for a mouse or touch screen. I've got some suggestions for it, but I'll put...
    I'm US Eastern (-5 to -4 with DST). I also don't sleep normally, though, so when I'm up is anyone's guess. I got it to build a...
    Okay, so I've spent the past day and a half on the wiki and forums. I've forked MediaPortal/MediaPortal-2, downloaded a ton of...
    Replies
    27
    Views
    1K
    I´m even on Windows 10 Insider Preview 21343 and everything works perfect here :whistle: ;)
    I´m even on Windows 10 Insider Preview 21343 and everything works perfect here :whistle: ;)
    It stopped while I found a copy of wmp11-windowsxp-x86-enu.exe. Really guys? XP? MSFT no help, found one on FileHippo, but it...
    Replies
    6
    Views
    291
    Hi Azzuro, Thanks, but I wanted a fanless psu. I found this one: https://www.ldlc.com/fiche/PB00179655.html :)
    Hi Azzuro, Thanks, but I wanted a fanless psu. I found this one: https://www.ldlc.com/fiche/PB00179655.html :)
    Hi guys, My external power supply of my htpc doesn't work anymore. :( It's an hfx power supply 220VAC 12 VDC 16.7A (ref EF28). I...
    Replies
    3
    Views
    1K
    Very odd. Thank you for looking. I am mystified then. If ever I find a solution I will post it. Thank you RH
    Very odd. Thank you for looking. I am mystified then. If ever I find a solution I will post it. Thank you RH
    Good evening all, I am getting an error dialog when Online Videos opens : "Error in update: "Automatic update disabled. Check your...
    Replies
    8
    Views
    368
    Top Bottom