XBMC Python Script (1 Viewer)

P_stAR

Portal Member
December 9, 2005
9
0
i have also Changed SERVER_HOST in xbmcplugin_list.py to the TV3 sever ip, but in xbmc i get always message
"could not connect to network serer".

i know the computer can be accessed because it servers other files to the xbox fine.
and i can watch tv through media portal.

the tv3 engine is usesing mysql for database.
 

jez

Portal Member
November 5, 2008
29
0
Melbourne
Home Country
P_stAR: run wireshark on your TV and see if you get any packets on TCP port 9596.

By the way, I've committed to subversion an update to the python plug-in code, that lets you configure it using the "configure plug-in" menu option (pressing the white button when the plug-in is selected). It won't fix the networking issues some of you seem to have, but it does make reconfigurification a lot easier. The changed files are on sourceforge at:

SourceForge.net Repository - [mp-plugins] Index of /trunk/plugins/XBMCServer/TVServer Live TV

What you need to replace is everything under resources/ and and MpLiveTv/xbmcplugin_list.py.

I'm going to have a go at extending the features of this plug-in. Don't expect much in a hurry (or at all) but my first goal is to be able to use it to watch recorded shows. Listing them such that a user can select one should be fairly easy, and I'll probably play them using SMB after sharing the "recordings" folder.
 

jez

Portal Member
November 5, 2008
29
0
Melbourne
Home Country
I'm using MPv1RC3 myself, so yes. I'm developing the non-networking bits of the python side using the "XBMC_PC" program, if that's what you mean by "XBMC for Windows". But as I can't get networking to work in that environment, I'm testing it out on a real live XBox.
 

jez

Portal Member
November 5, 2008
29
0
Melbourne
Home Country
Hey, it's been a while since I've looked for XBMC for Windows. But I've just installed one of Kricker's builds now. Networking now works just fine for me in other plug-ins and scripts, but I can't seem to get a packet out of this plug-in. I'll look into it.

Two minor tweaks later (to fix two stupid errors on my part) and the svn version now works for me. Jeesh, that XBMC4Win rocks!

Now I've fixed the protocol version checking code on the XBMC side so that it works with old and new versions of the MP plug-in. Please let me know how it goes.
 

jez

Portal Member
November 5, 2008
29
0
Melbourne
Home Country
I don't know if there's a guide about, but here are some brief instructions:

1) get and install Visual C#2005 Express from Visual Studio 2005 Express Editions
2) run VC#, open project, select TVServerXBMC.sln
3) from "Build" menu choose "Build Solution"

You should now have a new directory bin\Release\ and in there should be the file TVServerXBMC.dll

Copy the DLL file into C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\, restart the TV Server, enable, use, etc...
 

bob808

MP Donator
  • Premium Supporter
  • June 14, 2008
    295
    32
    Hampshire
    Home Country
    United Kingdom United Kingdom
    thanks Jez - I managed to get it to build with the 2008 version - needed to convert it but the compile went fine and I have the .dll now :)

    I will give it a bash over the weekend... I assume for the xbmc side I just copy the 'tvserver live tv' folder into the scripts folder and run from there?



    edit - added to scripts (to test on my laptop, am not at home so cant connect to MP TV server - just wanted to run the script) and when I try to launch it, it says running, then just stops... nothing happens... should I get a config screen or anything to setup to get it working - or have I missed the point on what to do for the xmbc side in windows?

    edit x2 - put it into plugins rather than scripts... when I click it it says 'loading directory' but then does nothing... any ideas or is this expected until it can communicate with the tv server when i get home?
     

    jez

    Portal Member
    November 5, 2008
    29
    0
    Melbourne
    Home Country
    Yes, plug-ins is correct. You should have a directory "XBMC\plugins\Video\TVServer Live TV\" with default.py etc in there.

    The go to Videos, "Add Source", browse to the video plug-ins, select "TVServer Live TV" and OK. Or create a video source with a path of "plugin://video/TVServer Live TV/" with a name of "TVServer Live TV".

    Then go to Videos, right-click on the new source "TVServer Live TV" and select "Plugin Settings". You should be able to put in your hostname or IP address there. If it can't find the server, it will show a dialog-box saying "Could not connect to network server".
     

    Users who are viewing this thread

    Top Bottom