For What/Why/When and How open the spolier
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
Media Portal 1.3.0 Final
The following is necessary for all installations and must be placed in the TV Server directory.
For 1.3.0 Beta and onwards
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.
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.
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.
Public CustomDataGrabber as CustomDataGrabber = new CustomDataGrabber()
You now need to add handlers for OnPacket and OnComplete to your subroutines Raised everytime a new Data Section Arrives.
Public Sub OnTSPacket(ByVal Pid As Integer, ByVal Length As Integer, ByVal Data As Section) Handles CustomDataGrabber.OnPacket
'Your Code
End Sub
Raised when the Custom Data Grabber has finished'Your Code
End Sub
Sub OnComplete(ByVal err As Boolean, ByVal errormessage As String) Handles CustomDataGrabber.OnComplete
'Your Code
End Sub
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'Your Code
End Sub
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)
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 raisedDim 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)
Try
'Code
CustomDataGrabber.SendComplete(0)
Catch
CustomDataGrabber.SendComplete(1)
End Try
'Code
CustomDataGrabber.SendComplete(0)
Catch
CustomDataGrabber.SendComplete(1)
End Try
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.
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
- MediaPortal SVN Installer with Series Link - Click Here
- TvServer SVN Installer with patch - Click Here
- MediaPortal SVN Installer with Series Link - Click Here
- TvServer SVN Installer with patch - Click Here
Media Portal 1.3.0 Final
- MediaPortal SVN Installer with Series Link - Click Here
- TvServer SVN Installer with patch - Click Here
- MediaPortal SVN Installer with Series Link - Click Here
- TvServer SVN Installer with patch - Click Here
- MediaPortal SVN Installer with Series Link - Click Here
- TvServer SVN Installer with patch - Click Here
- MediaPortal Installer with Series Link - Click Here
- TvServer Installer with patch - Click Here
- Full installer - Click Here
- Source Code - Click Here
The following is necessary for all installations and must be placed in the TV Server directory.
- Custom Data Grabber - 1.0.0.3 - Click Here
- Source code is available here :-https://github.com/djblu/Custom-Data-Grabber
For 1.3.0 Beta and onwards
- Sky UK Plugin - Version 1.4.0.6
- Sky IT Plugin - Version 1.4.0.1
- Sky NZ Plugin - Version 1.4.0.5
- Sky UK Plugin - Version 1.2.0.33
- Sky IT Plugin - Version 1.2.0.5
- Foxtel Australia Plugin - Version 1.2.0.2
- Freesat UK Plugin - Version 1.2.0.2
Sky NZ Plugin 1.4.0.6
Fixed: Default Grabber channel settings.
Sky UK Plugin 1.4.0.6
Added: New settings method to reduce calls to database.
Added: New throttling method to reduce stuttering on slower systems.
Sky UK plugin 1.4.0.5
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
Fixed: Default Grabber channel settings.
Sky UK Plugin 1.4.0.6
Added: New settings method to reduce calls to database.
Added: New throttling method to reduce stuttering on slower systems.
Sky UK plugin 1.4.0.5
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
Attachments
-
Custom Data Grabber Plugin_Source_Code.zip14.8 KB
-
Custom Data Grabberv1.0.0.3.zip7.2 KB
-
Freesat Channel and EPG Scannerv1.2.0.2.zip52.8 KB
-
Foxtel Australia Channel and EPG Grabberv1.2.0.2.zip51.4 KB
-
Sky IT Channel and EPG Grabberv1.2.0.5.zip52.8 KB
-
Sky UK Channel and EPG Grabberv1.2.0.36.zip52 KB
-
Sky IT Channel and EPG Grabber1.4.0.1.zip50.5 KB
-
Sky UK Channel and EPG Grabberv1.4.0.2.zip55.7 KB
-
Sky UK Channel and EPG Grabberv1.4.0.3.zip55.3 KB
-
Sky UK Channel and EPG Grabberv1.4.0.4.zip56 KB
-
Sky UK Channel and EPG Grabberv1.4.0.6.zip57.4 KB
-
Sky NZ Channel and EPG Grabberv1.4.0.5.zip51 KB
Last edited by a moderator: