ITaskScheduler (1 Viewer)

BigGranu

Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    55
    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,070
    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
    55
    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 TVGuide Users DE
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it is set up for use with MediaPortal..? I havebeen using Zap2XML / GraceNote but that just died (for me alone seemingly) and I am out of listings. :( Would appreciate any help - Thanks.
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it...
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it...
    Replies
    0
    Views
    750
    There seem to be several errors shown in the log: (1) There are many lines that say Invalid year for OnAirDate. This suggests that either the web site is sending invalid data, or that the format of the data has changed and the TvMovieEPG Importer is misinterpreting it. (2) There is also this error, but I don't know what it means...
    There seem to be several errors shown in the log: (1) There are many lines that say Invalid year for OnAirDate. This suggests that...
    No EPG data has been loading for the past few days. I'm getting an error message. See attachment. Can anyone help?
    Replies
    3
    Views
    1K
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    Hello, I'm encountering an issue after importing EPG data into the TV-Server/Database. The Problem: After importing an XMLTV...
    Replies
    7
    Views
    2K
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    2K
    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
    2K
    Top Bottom