Custom Data Grabber including Sky UK Channel/EPG Grabber (5 Viewers)

DJBlu

Portal Pro
August 14, 2007
1,670
813
Llanelli
Home Country
United Kingdom United Kingdom
Guys if the Manual Control is dissapearing then there is something wrong with the plugin.

@Gizmozo Try this.

This will delete everything associated with the TV Server. i.e Channels, Scheduled recordings, EPG and settings. It will not delete any physical files.

Stop the TV Server and close the TV Setup.

Open MySql Command Line client
Password should be "MediaPortal" unless you changed it at installation.

Type this

drop database mptvdb; [return]

Exit the Command Line client.

Open TV Setup. Click Yes to start the service.

Now try to enable the plugin. If Manual Control is still missing then upload your log files in here.
 

Gizmozo

Portal Pro
April 25, 2013
50
1
Home Country
New Zealand New Zealand
Hey guys,

Thanks @DJBlu that appears to have done the trick ! I can now access the Manual Control.

Now to try and figure out what is up with my TBS card, but that will be another post.

G/
 

txrx

New Member
November 13, 2012
1
1
Home Country
Great Britain (UK) Great Britain (UK)
Hi DJBlu,

I'm having an issue since moving to 1.6 where the grabber no longer works. I'm running your MediaPortal Installer/TvServer Installer, TV is working, channels are found and work fine, but I get an "Error Occured:- AllCardsBusy" error from the grabber everytime:

Code:
[2014-04-22 14:47:41,490] [Log    ] [SetupTv  ] [INFO ] - ---- SetupTv v1.6.0.17 is starting up on Windows 7 ( Service Pack 1 ) [6.1.7601.65536]
[2014-04-22 14:47:41,521] [Log    ] [SetupTv  ] [INFO ] - ---- check connection with database ----
[2014-04-22 14:47:41,927] [Log    ] [SetupTv  ] [INFO ] - SetupDatabaseForm: Added dependency for TvService - MySQL
[2014-04-22 14:47:41,927] [Log    ] [SetupTv  ] [INFO ] - ---- check if database needs to be updated/created ----
[2014-04-22 14:47:41,958] [Log    ] [SetupTv  ] [INFO ] - ---- upgrade database schema ----
[2014-04-22 14:47:41,958] [Log    ] [SetupTv  ] [INFO ] - ---- check if tvservice is running ----
[2014-04-22 14:47:42,410] [Log    ] [SetupTv  ] [DEBUG] - RemoteControl: RegisterChannel first called in Domain SetupTv.exe for thread SetupTv with id 1
[2014-04-22 14:47:46,497] [Log    ] [SetupTv  ] [INFO ] - ---- restart tvservice----
[2014-04-22 14:47:53,268] [Log    ] [SetupTv  ] [INFO ] - Set loglevel to: Debug
[2014-04-22 14:47:57,823] [Log    ] [SetupTv  ] [INFO ] - Util: Version of installed Psisdecd.dll: 6.6.7601.17669 Path: C:\Windows\SysWOW64\PsisDecd.dll
[2014-04-22 14:47:57,823] [Log    ] [SetupTv  ] [INFO ] - Util: Version of installed Psisdecd.dll: 6.6.7601.17669 Path: C:\Windows\SysWOW64\psisdecd.dll
[2014-04-22 14:47:59,991] [Log    ] [SetupTv  ] [DEBUG] - Weekend Updated to : Saturday/Sunday
[2014-04-22 14:48:05,857] [Log    ] [SetupTv  ] [INFO ] - Sky Plugin : Sky Channel and EPG Grabber initialised
[2014-04-22 14:48:05,982] [Log    ] [9        ] [INFO ] - Sky Plugin : Huffman Loaded
[2014-04-22 14:48:06,481] [Log    ] [9        ] [INFO ] - Sky Plugin : Grabbing Data
[2014-04-22 14:48:06,496] [Log    ] [9        ] [INFO ] - Sky Plugin : Throttler enabled tripling grab time to ensure all data is collected
[2014-04-22 14:48:06,496] [Log    ] [9        ] [INFO ] - Sky Plugin : Grabber set to grab 180 seconds of data
[2014-04-22 14:48:08,368] [Log    ] [10       ] [INFO ] - Sky Plugin : Error Occured:- AllCardsBusy

Any help would be much appreciated,

Regards

EDIT/UPDATE: OK sweet, so I've fixed it after not looking at it for ages! The issue was DJBlu's "Sky UK Grabber" radio channel wasn't mapped to any cards, so I added an entry to the channelmap table with the channel's ID, and ID for the correct card, and that fixed it!
 
Last edited:

Benoire

MP Donator
  • Premium Supporter
  • March 17, 2012
    679
    161
    45
    Auckland
    Home Country
    New Zealand New Zealand
    @DJBlu

    I'm still going strong with the code :) Managed to get it all compiled and scanning for the channels, but despite 'copying' the data from the NZ plugin it doesn't appear to pick up the channel numbers or the groups; had it do the groups briefly but then that disappeared despite there being no errors. anyway, I'm trying to find the code to stop the replication of channels with different provider names than Sky, would this section do that?

    If (str2 = "SKYUK") Then
    IfNotMe.Channels.ContainsKey(num) Then
    Me.removechannel(current, deleteOldChannels, oldChannelFolder)

    Do you recall how much of a change you had to make to the UK one to make it fully compatible with NZ?

    Thanks,

    Chris
     

    Benoire

    MP Donator
  • Premium Supporter
  • March 17, 2012
    679
    161
    45
    Auckland
    Home Country
    New Zealand New Zealand
    @DJBlu

    Hi, sorry to bug you again.

    Does CustomDataParser.cpp do anything to the header with respect to feeding it in the custom data grabber? I'm potentially looking at doing something slightly different with the custom data grabber dll but wanted to know whether the parser feeds the full header to the CDG and therefore each plugin (if requested) or if the parser focuses on certain sections of the header known to carry OpenTV data etc?

    Any guidance would be great.

    Thanks,

    Chris
     

    DJBlu

    Portal Pro
    August 14, 2007
    1,670
    813
    Llanelli
    Home Country
    United Kingdom United Kingdom
    All the Custom Data Parser does is write packets(wrapped in the sync checker bytes). It doesn't know or care about the data. The only way it knows to grab is by the pids that you request.

    I think I know what you are trying and if I'm right take a look at the code in this thread

    https://forum.team-mediaportal.com/threads/sky-uk-it-aus-enhancements.87526/

    This has all the code integrated into MediaPortal.
     

    Benoire

    MP Donator
  • Premium Supporter
  • March 17, 2012
    679
    161
    45
    Auckland
    Home Country
    New Zealand New Zealand
    Evening People, I need some help!

    I'm in the process of updating the NZ plugin to reflect the latest code in the UK 1.4.0.6 where possible but I've hit a snag. The code compiles fine with the changes I've made and will scan BUT I'm getting a null reference and VS2012 isn't throwing out any problems. I'm not a professional coder, infact I'd class myself as a beginner but I'm learning. I've attached the source code, (dll is in the zip) for the NZ plugin and a screenshot. If someone has the time and inclination would they mind casting their eye over it and see if they can find the issue? I believe it is occurring in the UpdateAddChannels section as it scans the first channel and then brings this error up in the sorting phase.

    Thanks,

    Chris
     

    Attachments

    • Capture.PNG
      Capture.PNG
      155.7 KB
    • Sky NZ Plugin v1a.zip
      711.7 KB

    Benoire

    MP Donator
  • Premium Supporter
  • March 17, 2012
    679
    161
    45
    Auckland
    Home Country
    New Zealand New Zealand
    In all my eagerness I forgot to check, will look when I'm back from work this evening.

    The code, if you have looked, will be a bit all over the place as I said I'm slowly porting across the code from 1.4.0.6 to it and working out the correct labels etc that you used originally. I have no doubt you could do this quickly but for me this is a fun challenge; and I'm learning a ton too!
     

    Benoire

    MP Donator
  • Premium Supporter
  • March 17, 2012
    679
    161
    45
    Auckland
    Home Country
    New Zealand New Zealand
    @DJBlu

    rightio the error from the setup-TV error log is:

    [2014-05-02 19:10:30,646] [Log ] [SetupTv ] [ERROR] - OnActivated error: Object reference not set to an instance of an object.

    Not sure if that helps...
     

    Users who are viewing this thread

    Top Bottom