XBMC Python Script (2 Viewers)

Brutus

Portal Member
December 19, 2005
38
0
Belgium
I first started using the 'plugin' as a video source, but then it seems to me it never runs the default.py. (I followed the instructions from prev. posts) Then I started debugging what was going wrong (running default.py directly), and indeed I encounter then some problems like args which are not passed to the script, but more its seems to have more problems with 'import ... from ... as'. Anyhow, I would like to continue as a a plugin, but why isn't running default.py ? (normally I need to 'Add Source' in the video part, give it a name like 'TVServer Live TV' and then hit Browse button and select the folder of the plugin) Can't wait to see it working !!!
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
The plugin has to be located in XBMC\plugins\

And then you add source, and just choose "Video Plugins", and you should see the TV Server plugin. Highlight it, and press OK. This will add the plugin as a directory. After this, all you need to do is use the directory to access it.
 

Brutus

Portal Member
December 19, 2005
38
0
Belgium
thanks for the info, will test it when back@home

I didn't saw 'Video Plugins' when adding a source, I think the problem had to do with the skin which was not updated (i only updated SVN when i was trying it as plugin), afterwards it upgraded also the skin but then I didn't check add source anymore. How should the sources.xml file look like for this plugin (so I can double check) ?
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
Use PM3, always the safe bet.

the sources.xml will probably have plugin://video/TVServer Live TV

or something similar.
 

Brutus

Portal Member
December 19, 2005
38
0
Belgium
It works perfect !!! Great !!! Did you had any change to work on the integrated version in XBMC (not as a python plugin, c/c++) ?
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
Minor update : the EPG info shows correctly (and nicely) in the script now. In SVN as usual.

I have a bit of time at the moment, so trying the c++ version again. Just updating XBMC to the latest version, and going to have to fix up some conflicts, and then see if I can get anything working :)
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
I have a patch (for xbmc linux at least, haven't tried with the xbox port but I'm hoping it works fine)
http://pastebin.com/m1bc4159b

It adds very basic native support to XBMC. The Python script is probably still better at this point :p However, this will hopefully eventually let me do channel+/- directly while watching. The python script is still faster, as it doesn't cache whereas this attempts to cache.

Developers: is it possible to switch channel without new graph, basically having to close the last stream etc? Or at least, is it possible to somehow get a change channel thing that will keep the stream going (with blank frames), as it would be much faster than closing and reopening the stream after changing a channel.
 

Bram

Portal Pro
December 12, 2005
851
3
's-Hertogenbosch
Home Country
Netherlands Netherlands
Wow! Nice! I'm looking forward to testing it (hopefully in the next T3CH build for the XBOX). Will it work the same way as with mythtv? With a remote mythtv server you can simply add "mythtv://mythtvurl" as a source in the video section.
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
It is not yet in SVN so it won't be in the next T3CH :( Have to patch it yourself. Not sure if it will ever get into SVN either.

But it is similar to myth, you add tvserver://[the IP of the server] as a source.
 

Users who are viewing this thread

Top Bottom