ITaskScheduler (1 Viewer)

BigGranu

Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    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
    53
    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 1.32 StreamedMP Latest Music DE
    No one can help me here?
    No one can help me here?
    In StreamedMP I have the most recently added films (Moving Pictures) and also TV recordings on the home screen. But I made the...
    Replies
    5
    Views
    618
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and remember to add support for this sort order.
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and...
    Hi, I was wondering if there is anyone who might be able to help me out. Is there a way to either use the sort feature and/or a...
    Replies
    6
    Views
    783
    Hi Framug, Thank you, you helped me a lot.
    Hi Framug, Thank you, you helped me a lot.
    Hi, i want to delete a video via the 0-Key (Zero). But other than the focus jumps to the top of the list nothing happens. Then i...
    Replies
    3
    Views
    827
    I am Sure the Issues will be fixed towards a stable. NET6 Version. Please don't get me wrong - My Intent was not any Complaint at all. I just wanted to: understand current Status & Situation understand my Options for a stable System improve my Knowledge & learn from Experts Especially because your limited Dev Resources and the...
    I am Sure the Issues will be fixed towards a stable. NET6 Version. Please don't get me wrong - My Intent was not any Complaint at...
    Hello Folks, Yesterday I upgraded to Mediaportal 2.5 via uninstalling 2.4.1 first and then install the latest .NET6 Variant of...
    Replies
    12
    Views
    1K
    @CyberSimian Thank you very much. That has worked!!
    @CyberSimian Thank you very much. That has worked!!
    Do live TV subtitles work for TV in Australia? If so what are the settings? I am a 74 year old with hearing impairment and have...
    Replies
    12
    Views
    2K
    Top Bottom