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 1
Development
General Development (no feature request here!)
Custom Data Grabber including Sky UK Channel/EPG Grabber
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="DJBlu" data-source="post: 747819" data-attributes="member: 54957"><p>For What/Why/When and How open the spolier</p><p>[spoiler]</p><p>What is this?</p><p></p><p>This is a patch and plugin I have created for Media Portal TV Server which allows you to create a plugin that can request raw data from the TV Server.</p><p></p><p>Why did I write this?</p><p></p><p>Simple, the code changes required for the TSWriter and TVLibrary to include new features was becoming really difficult. I thought to myself what is required? And my answer was a Pid Filter system.</p><p></p><p>How does it work?</p><p></p><p>At the moment any plugin that you write will need a TV/Radio channel that is created and stored in the Database. The Custom Data Grabber is then able to timeshift this channel whilst grabbing RAW section data from the TSWriter. All you need to do is tell the Custom Data Grabber which channel, what pids and for how long? It is then up to you as to what you do with this section data.</p><p></p><p>I want to write a plugin what do I do?</p><p></p><p>Download the SVN files and Custom Data Grabber down below. Install them over the top of a MediaPortal 1.2.0 beta installation. Copy the Custom Data Grabber.dll to the TV Server directory. Start your project as you would normally do in C# or Vb.net. Add a reference to the Custom Data Grabber.dll Create a new instance of the Custom Data Grabber.</p><p></p><p style="margin-left: 20px">Public CustomDataGrabber as CustomDataGrabber = new CustomDataGrabber()</p> <p style="margin-left: 20px"></p><p>You now need to add handlers for OnPacket and OnComplete to your subroutines Raised everytime a new Data Section Arrives.</p><p style="margin-left: 20px">Public Sub OnTSPacket(ByVal Pid As Integer, ByVal Length As Integer, ByVal Data As Section) Handles CustomDataGrabber.OnPacket</p> <p style="margin-left: 20px">'Your Code</p> <p style="margin-left: 20px">End Sub</p> <p style="margin-left: 20px"></p><p>Raised when the Custom Data Grabber has finished</p><p></p><p style="margin-left: 20px">Sub OnComplete(ByVal err As Boolean, ByVal errormessage As String) Handles CustomDataGrabber.OnComplete</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">'Your Code</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">End Sub</p> <p style="margin-left: 20px"></p><p>To start the Grab Create a channel for the grabber to use or get the channel from the TV Database. Create a List of Pids to send</p><p></p><p style="margin-left: 20px">Dim DataBaseChannel as Channel = _layer.GetChannelbyName("Sample Channel")</p> <p style="margin-left: 20px">Dim Pids as List(of integer) = new List(of Integer)</p> <p style="margin-left: 20px">Dim Seconds as Integer = 60</p> <p style="margin-left: 20px">Pids.Add(&H10) ' Nit</p> <p style="margin-left: 20px">Pids.Add(&H11) ' SDT/BAT</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">CustomDataGrabber.grab(DatabaseChannel.ChannelId, SecondsToGrab, Pids)</p> <p style="margin-left: 20px">CustomDataGrabber.SendComplete(ErrorCode)</p> <p style="margin-left: 20px"></p><p>ErrorCode of 0 means no errors and the OnComplete event will be raised ErrorCode of 1 means an error occured and the OnComplete event will NOT be raised</p><p></p><p style="margin-left: 20px">Try</p> <p style="margin-left: 20px">'Code</p> <p style="margin-left: 20px">CustomDataGrabber.SendComplete(0)</p> <p style="margin-left: 20px">Catch</p> <p style="margin-left: 20px">CustomDataGrabber.SendComplete(1)</p> <p style="margin-left: 20px">End Try</p><p></p><p>What are the posibilities with this?</p><p></p><p>Many, I have already created 2 plugins which are below to show what is capable. EPG systems, Channel Scanning and updating. Interactive Services.</p><p></p><p>The major advantage over this is if it was implemented into TV Server then you only change 1 plugin file instead of changing several in the core of the TVServer.</p><p></p><p>I know this is a long guide but if you give it a try you will see the concept is rather simple and it opens the TVServer to new and exciting features.</p><p>[/spoiler]PLEASE DOWNLOAD AND READ THE INSTALL INSTRUCTIONS ON POST #2.</p><p>If you find it is not working, Delete your database and run the Installer again.</p><p></p><p>Install the following in order.</p><p></p><p>Media Portal 1.3.0 Alpha</p><ul> <li data-xf-list-type="ul">MediaPortal SVN Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/setup-mediaportal-with-custom-and-series-for-1-3-0-alpha-zip.111333/" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer SVN Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/setup-tvengine-with-custom-and-series-for-1-3-0-alpha-zip.111334/" target="_blank">Click Here</a></li> </ul><p>Media Portal 1.3.0 RC</p><ul> <li data-xf-list-type="ul">MediaPortal SVN Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-2-300-204-custom-data-grabber-zip.121420/?temp_hash=6bc6d459829436a5b4b3c8d5c760ab7d" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer SVN Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-2-300-204-custom-data-grabber-zip.121421/?temp_hash=6bc6d459829436a5b4b3c8d5c760ab7d" target="_blank">Click Here</a></li> </ul><p></p><p>Media Portal 1.3.0 Final</p><ul> <li data-xf-list-type="ul">MediaPortal SVN Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-3-0-15-custom-data-grabber-zip.124513/?temp_hash=cd9f7d8d5dc113d6779c40c840a9412c" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer SVN Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-3-0-15-custom-data-grabber-zip.124514/?temp_hash=cd9f7d8d5dc113d6779c40c840a9412c" target="_blank">Click Here</a></li> </ul><p>Media Portal 1.4.0 Final</p><ul> <li data-xf-list-type="ul">MediaPortal SVN Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/setup-mediaportal-custom-data-grabber-and-series-link-git-1-4-0-16-rar.132531/?temp_hash=8d73c32d4e78bff87c25d137d7d3e890" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer SVN Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/setup-tvengine-custom-data-grabber-and-series-link-git-1-4-0-16-zip.132532/?temp_hash=8d73c32d4e78bff87c25d137d7d3e890" target="_blank">Click Here</a></li> </ul><p>Mediaportal 1.5.0 Final</p><ul> <li data-xf-list-type="ul">MediaPortal SVN Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-5-0-custom-data-grabber-zip.137156/?temp_hash=41ce32bc28c56ba6d6a9c2686e0e2b85" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer SVN Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-5-0-custom-data-grabber-zip.137162/?temp_hash=41ce32bc28c56ba6d6a9c2686e0e2b85" target="_blank">Click Here</a></li> </ul><p>Mediaportal 1.6.0 Final</p><ul> <li data-xf-list-type="ul">MediaPortal Installer with Series Link - <a href="https://forum.team-mediaportal.com/attachments/custom-data-grabber-setup-mediaportal-git-1-6-0-17-zip.143448/?temp_hash=eea3f10746a6c0c250b4f10e2a7361bd" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">TvServer Installer with patch - <a href="https://forum.team-mediaportal.com/attachments/custom-data-grabber-setup-tvengine-git-1-6-0-17-zip.143449/?temp_hash=eea3f10746a6c0c250b4f10e2a7361bd" target="_blank">Click Here</a></li> </ul><p>Mediaportal 1.15.0 Final (added by [USER=48291]@Brownard[/USER])</p><ul> <li data-xf-list-type="ul">Full installer - <a href="https://forum.team-mediaportal.com/attachments/mediaportalsetup_1-15-0_customdatagrabber-zip.181913/" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">Source Code - <a href="https://github.com/brownard/MediaPortal-1/tree/EXP-Custom.Data.Grabber.and.Series.Link.v.1.15" target="_blank">Click Here</a></li> </ul><p></p><p>The following is necessary for all installations and must be placed in the TV Server directory.</p><ul> <li data-xf-list-type="ul">Custom Data Grabber - 1.0.0.3 - <a href="https://forum.team-mediaportal.com/attachments/custom-data-grabberv1-0-0-3-zip.87312/" target="_blank">Click Here</a></li> <li data-xf-list-type="ul">Source code is available here :-<a href="https://github.com/djblu/Custom-Data-Grabber" target="_blank">https://github.com/djblu/Custom-Data-Grabber</a></li> </ul><p>The following are used as required</p><p></p><p>For 1.3.0 Beta and onwards</p><ul> <li data-xf-list-type="ul">Sky UK Plugin - <a href="https://forum.team-mediaportal.com/attachments/sky-uk-channel-and-epg-grabberv1-4-0-6-zip.135238/?temp_hash=23db084116918736b301a34f6af8825d" target="_blank">Version 1.4.0.6</a></li> <li data-xf-list-type="ul">Sky IT Plugin - <a href="https://forum.team-mediaportal.com/attachments/sky-it-channel-and-epg-grabber1-4-0-1-zip.133102/?temp_hash=e206f2dd4060d4236e85781d93acba03" target="_blank">Version 1.4.0.1</a></li> <li data-xf-list-type="ul">Sky NZ Plugin - <a href="https://forum.team-mediaportal.com/attachments/sky-nz-channel-and-epg-grabberv1-4-0-5-zip.136730/?temp_hash=f543c9ddf3713686eb341cc1cb611abe" target="_blank">Version 1.4.0.5</a></li> </ul><p>For 1.3.0 Alpha and earlier</p><ul> <li data-xf-list-type="ul">Sky UK Plugin - <a href="https://forum.team-mediaportal.com/attachments/sky-uk-channel-and-epg-grabberv1-2-0-33-zip.115982/?temp_hash=4b82623b67776799dd59dd61065df431" target="_blank">Version 1.2.0.33</a></li> <li data-xf-list-type="ul">Sky IT Plugin - <a href="https://forum.team-mediaportal.com/attachments/sky-it-channel-and-epg-grabberv1-2-0-5-zip.117318/" target="_blank">Version 1.2.0.5</a></li> <li data-xf-list-type="ul">Foxtel Australia Plugin - <a href="https://forum.team-mediaportal.com/attachments/foxtel-australia-channel-and-epg-grabberv1-2-0-2-zip.91726/" target="_blank">Version 1.2.0.2</a></li> <li data-xf-list-type="ul">Freesat UK Plugin - <a href="https://forum.team-mediaportal.com/attachments/freesat-channel-and-epg-scannerv1-2-0-2-zip.91706/" target="_blank">Version 1.2.0.2</a></li> </ul><p>ChangeLog (Open Spoiler)</p><p></p><p></p><p>[spoiler]</p><p></p><p><strong>Sky NZ Plugin 1.4.0.6</strong></p><p></p><p>Fixed: Default Grabber channel settings.</p><p></p><p><strong>Sky UK Plugin 1.4.0.6</strong></p><p></p><p>Added: New settings method to reduce calls to database.</p><p>Added: New throttling method to reduce stuttering on slower systems.</p><p></p><p><strong>Sky UK plugin 1.4.0.5</strong></p><p></p><p>Fixed: Update every x hours settings fixed.</p><p></p><p>Sky UK Plugin - 1.4.0.4</p><p></p><p>Added: Logos are centred.</p><p></p><p>Sky UK Plugin - 1.4.0.3</p><p></p><p>Fixed : Logo name issue</p><p>Added : Throttler to prevent CPU starvation</p><p></p><p>Sky UK Plugin - 1.4.0.2</p><p></p><p>Fixed: Channel.Persist error(s)</p><p>Re-added Logo downloader</p><p></p><p>Sky IT Plugin - 1.4.0.1</p><p></p><p>Re-released with mods from other plugins and updated to TVServer 1.4.0</p><p></p><p>Sky NZ Plugin - 1.4.0.4</p><p></p><p>Fixed Bouquet ID and Network ID error</p><p>[/spoiler]</p></blockquote><p></p>
[QUOTE="DJBlu, post: 747819, member: 54957"] For What/Why/When and How open the spolier [spoiler] What is this? This is a patch and plugin I have created for Media Portal TV Server which allows you to create a plugin that can request raw data from the TV Server. Why did I write this? Simple, the code changes required for the TSWriter and TVLibrary to include new features was becoming really difficult. I thought to myself what is required? And my answer was a Pid Filter system. How does it work? At the moment any plugin that you write will need a TV/Radio channel that is created and stored in the Database. The Custom Data Grabber is then able to timeshift this channel whilst grabbing RAW section data from the TSWriter. All you need to do is tell the Custom Data Grabber which channel, what pids and for how long? It is then up to you as to what you do with this section data. I want to write a plugin what do I do? Download the SVN files and Custom Data Grabber down below. Install them over the top of a MediaPortal 1.2.0 beta installation. Copy the Custom Data Grabber.dll to the TV Server directory. Start your project as you would normally do in C# or Vb.net. Add a reference to the Custom Data Grabber.dll Create a new instance of the Custom Data Grabber. [INDENT]Public CustomDataGrabber as CustomDataGrabber = new CustomDataGrabber() [/INDENT] You now need to add handlers for OnPacket and OnComplete to your subroutines Raised everytime a new Data Section Arrives. [INDENT]Public Sub OnTSPacket(ByVal Pid As Integer, ByVal Length As Integer, ByVal Data As Section) Handles CustomDataGrabber.OnPacket 'Your Code End Sub [/INDENT] Raised when the Custom Data Grabber has finished [INDENT]Sub OnComplete(ByVal err As Boolean, ByVal errormessage As String) Handles CustomDataGrabber.OnComplete 'Your Code End Sub [/INDENT] To start the Grab Create a channel for the grabber to use or get the channel from the TV Database. Create a List of Pids to send [INDENT]Dim DataBaseChannel as Channel = _layer.GetChannelbyName("Sample Channel") Dim Pids as List(of integer) = new List(of Integer) Dim Seconds as Integer = 60 Pids.Add(&H10) ' Nit Pids.Add(&H11) ' SDT/BAT CustomDataGrabber.grab(DatabaseChannel.ChannelId, SecondsToGrab, Pids) CustomDataGrabber.SendComplete(ErrorCode) [/INDENT] ErrorCode of 0 means no errors and the OnComplete event will be raised ErrorCode of 1 means an error occured and the OnComplete event will NOT be raised [INDENT]Try 'Code CustomDataGrabber.SendComplete(0) Catch CustomDataGrabber.SendComplete(1) End Try[/INDENT] What are the posibilities with this? Many, I have already created 2 plugins which are below to show what is capable. EPG systems, Channel Scanning and updating. Interactive Services. The major advantage over this is if it was implemented into TV Server then you only change 1 plugin file instead of changing several in the core of the TVServer. I know this is a long guide but if you give it a try you will see the concept is rather simple and it opens the TVServer to new and exciting features. [/spoiler]PLEASE DOWNLOAD AND READ THE INSTALL INSTRUCTIONS ON POST #2. If you find it is not working, Delete your database and run the Installer again. Install the following in order. Media Portal 1.3.0 Alpha [LIST] [*]MediaPortal SVN Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/setup-mediaportal-with-custom-and-series-for-1-3-0-alpha-zip.111333/']Click Here[/URL] [*]TvServer SVN Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/setup-tvengine-with-custom-and-series-for-1-3-0-alpha-zip.111334/']Click Here[/URL] [/LIST] Media Portal 1.3.0 RC [LIST] [*]MediaPortal SVN Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-2-300-204-custom-data-grabber-zip.121420/?temp_hash=6bc6d459829436a5b4b3c8d5c760ab7d']Click Here[/URL] [*]TvServer SVN Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-2-300-204-custom-data-grabber-zip.121421/?temp_hash=6bc6d459829436a5b4b3c8d5c760ab7d']Click Here[/URL] [/LIST] Media Portal 1.3.0 Final [LIST] [*]MediaPortal SVN Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-3-0-15-custom-data-grabber-zip.124513/?temp_hash=cd9f7d8d5dc113d6779c40c840a9412c']Click Here[/URL] [*]TvServer SVN Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-3-0-15-custom-data-grabber-zip.124514/?temp_hash=cd9f7d8d5dc113d6779c40c840a9412c']Click Here[/URL] [/LIST] Media Portal 1.4.0 Final [LIST] [*]MediaPortal SVN Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/setup-mediaportal-custom-data-grabber-and-series-link-git-1-4-0-16-rar.132531/?temp_hash=8d73c32d4e78bff87c25d137d7d3e890']Click Here[/URL] [*]TvServer SVN Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/setup-tvengine-custom-data-grabber-and-series-link-git-1-4-0-16-zip.132532/?temp_hash=8d73c32d4e78bff87c25d137d7d3e890']Click Here[/URL] [/LIST] Mediaportal 1.5.0 Final [LIST] [*]MediaPortal SVN Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/setup-tvengine-git-1-5-0-custom-data-grabber-zip.137156/?temp_hash=41ce32bc28c56ba6d6a9c2686e0e2b85']Click Here[/URL] [*]TvServer SVN Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/setup-mediaportal-git-1-5-0-custom-data-grabber-zip.137162/?temp_hash=41ce32bc28c56ba6d6a9c2686e0e2b85']Click Here[/URL] [/LIST] Mediaportal 1.6.0 Final [LIST] [*]MediaPortal Installer with Series Link - [URL='https://forum.team-mediaportal.com/attachments/custom-data-grabber-setup-mediaportal-git-1-6-0-17-zip.143448/?temp_hash=eea3f10746a6c0c250b4f10e2a7361bd']Click Here[/URL] [*]TvServer Installer with patch - [URL='https://forum.team-mediaportal.com/attachments/custom-data-grabber-setup-tvengine-git-1-6-0-17-zip.143449/?temp_hash=eea3f10746a6c0c250b4f10e2a7361bd']Click Here[/URL] [/LIST] Mediaportal 1.15.0 Final (added by [USER=48291]@Brownard[/USER]) [LIST] [*]Full installer - [URL='https://forum.team-mediaportal.com/attachments/mediaportalsetup_1-15-0_customdatagrabber-zip.181913/']Click Here[/URL] [*]Source Code - [URL='https://github.com/brownard/MediaPortal-1/tree/EXP-Custom.Data.Grabber.and.Series.Link.v.1.15']Click Here[/URL] [/LIST] The following is necessary for all installations and must be placed in the TV Server directory. [LIST] [*]Custom Data Grabber - 1.0.0.3 - [URL='https://forum.team-mediaportal.com/attachments/custom-data-grabberv1-0-0-3-zip.87312/']Click Here[/URL] [*]Source code is available here :-[URL]https://github.com/djblu/Custom-Data-Grabber[/URL] [/LIST] The following are used as required For 1.3.0 Beta and onwards [LIST] [*]Sky UK Plugin - [URL='https://forum.team-mediaportal.com/attachments/sky-uk-channel-and-epg-grabberv1-4-0-6-zip.135238/?temp_hash=23db084116918736b301a34f6af8825d']Version 1.4.0.6[/URL] [*]Sky IT Plugin - [URL='https://forum.team-mediaportal.com/attachments/sky-it-channel-and-epg-grabber1-4-0-1-zip.133102/?temp_hash=e206f2dd4060d4236e85781d93acba03']Version 1.4.0.1[/URL] [*]Sky NZ Plugin - [URL='https://forum.team-mediaportal.com/attachments/sky-nz-channel-and-epg-grabberv1-4-0-5-zip.136730/?temp_hash=f543c9ddf3713686eb341cc1cb611abe']Version 1.4.0.5[/URL] [/LIST] For 1.3.0 Alpha and earlier [LIST] [*]Sky UK Plugin - [URL='https://forum.team-mediaportal.com/attachments/sky-uk-channel-and-epg-grabberv1-2-0-33-zip.115982/?temp_hash=4b82623b67776799dd59dd61065df431']Version 1.2.0.33[/URL] [*]Sky IT Plugin - [URL='https://forum.team-mediaportal.com/attachments/sky-it-channel-and-epg-grabberv1-2-0-5-zip.117318/']Version 1.2.0.5[/URL] [*]Foxtel Australia Plugin - [URL='https://forum.team-mediaportal.com/attachments/foxtel-australia-channel-and-epg-grabberv1-2-0-2-zip.91726/']Version 1.2.0.2[/URL] [*]Freesat UK Plugin - [URL='https://forum.team-mediaportal.com/attachments/freesat-channel-and-epg-scannerv1-2-0-2-zip.91706/']Version 1.2.0.2[/URL] [/LIST] ChangeLog (Open Spoiler) [spoiler] [B]Sky NZ Plugin 1.4.0.6[/B] Fixed: Default Grabber channel settings. [B]Sky UK Plugin 1.4.0.6[/B] Added: New settings method to reduce calls to database. Added: New throttling method to reduce stuttering on slower systems. [B]Sky UK plugin 1.4.0.5[/B] Fixed: Update every x hours settings fixed. Sky UK Plugin - 1.4.0.4 Added: Logos are centred. Sky UK Plugin - 1.4.0.3 Fixed : Logo name issue Added : Throttler to prevent CPU starvation Sky UK Plugin - 1.4.0.2 Fixed: Channel.Persist error(s) Re-added Logo downloader Sky IT Plugin - 1.4.0.1 Re-released with mods from other plugins and updated to TVServer 1.4.0 Sky NZ Plugin - 1.4.0.4 Fixed Bouquet ID and Network ID error [/spoiler] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Custom Data Grabber including Sky UK Channel/EPG Grabber
Contact us
RSS
Top
Bottom