home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
ITaskScheduler
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1100697" data-attributes="member: 48495"><p>Following things are important:</p><ol> <li data-xf-list-type="ol">Check the interface's documentation in code file</li> <li data-xf-list-type="ol">This is currently the only place where we use it in server, to schedule MediaLibrary imports: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L524-L559" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L524-L559</a></li> <li data-xf-list-type="ol">The scheduler itself does not execute procedures, it only sends messages for due events. The plugin has to listen for those message: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L417-L445" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L417-L445</a></li> </ol><p></p><p>If you plan own imports you can use this service.</p><p></p><p>Just guessing, if you look for a way how to store other content in the media library (Web radio channels, cinema+programs...):</p><p>you might consider to use the existing refresh job and add own:</p><ul> <li data-xf-list-type="ul">MediaItemAspects (store data in DB)<br /> </li> <li data-xf-list-type="ul">MetadataExtractor (extract or collect them from remote source)<br /> </li> <li data-xf-list-type="ul">ResourceProvider/Accessor (provide the "raw" access to the remote source)</li> </ul><p>Then in principle you only need to add a custom media source which will be imported in each night run.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1100697, member: 48495"] Following things are important: [LIST=1] [*]Check the interface's documentation in code file [*]This is currently the only place where we use it in server, to schedule MediaLibrary imports: [url]https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L524-L559[/url] [*]The scheduler itself does not execute procedures, it only sends messages for due events. The plugin has to listen for those message: [url]https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.Common/Services/MediaManagement/ImporterWorkerNewGen.cs#L417-L445[/url] [/LIST] 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: [LIST] [*]MediaItemAspects (store data in DB) [*]MetadataExtractor (extract or collect them from remote source) [*]ResourceProvider/Accessor (provide the "raw" access to the remote source) [/LIST] Then in principle you only need to add a custom media source which will be imported in each night run. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
ITaskScheduler
Contact us
RSS
Top
Bottom