Clear screen - help with plugin code

Requests, suggestions, support, and everything else python / plugin related.
Post Reply
rookie
Posts: 6
Joined: Tue Mar 18, 2014 1:49 am

Clear screen - help with plugin code

Post by rookie »

This is my first addons code to watch CNN:

Code: Select all

import xbmc, xbmcgui
streamurl = 'rtmp://c.cdn.livenewschat.eu/edge playpath=cnn_live swfUrl=http://msnbclive.eu/player.swf swfVfy=1 live=1 pageUrl=http://weplaylive.tv timeout=15'
li = xbmcgui.ListItem('CNN')
li.setInfo('video', {'Title': 'CNN', 'Genre': 'News Channel'})
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(streamurl,li, True)
The problem with the above code is the previous screen is not clear. Does anyone know how to fix it?
Second, can anyone tell me how to open a favorites.plx in Navix and use it to select what I want to watch
instead of hard coding it in the above example.

Thank you
Last edited by Dan Dar3 on Tue Mar 18, 2014 4:11 pm, edited 5 times in total.
Reason: Please don't post to unrelated topics - post split to its own topic and moved to correct forum.
rookie
Posts: 6
Joined: Tue Mar 18, 2014 1:49 am

Re: Clear screen - help with plugin code

Post by rookie »

I have fixed the problem. Thank Jan for all his code examples
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: Clear screen - help with plugin code

Post by Dan Dar3 »

That's great, although in the interest of other fellow members would be nice to post the details of the solution or at least a link to other post that helped, as well as updating this post / thread by adding "[SOLVED]" to the title.
rookie
Posts: 6
Joined: Tue Mar 18, 2014 1:49 am

Re: Clear screen - help with plugin code

Post by rookie »

I did post the code in TV-SHOW-LIVE thread http://www.xbmc4xbox.org.uk/forum/viewt ... =17&t=2448
User avatar
BuZz
Site Admin
Posts: 1890
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 65 times
Been thanked: 422 times
Contact:

Re: Clear screen - help with plugin code

Post by BuZz »

would be more useful if you used the phpbb

Code: Select all

[code]
[/code] tags :)
fxmech
Posts: 673
Joined: Wed Aug 01, 2012 9:15 am
Has thanked: 37 times
Been thanked: 46 times

Re: Clear screen - help with plugin code

Post by fxmech »

BuZz wrote:would be more useful if you used the phpbb

Code: Select all

[code]
[/code] tags :)
I'll happily volunteer to edit posts for people to include code tags.
Maybe a smarmy note at the end noting the edit. :D
Can easily add a javascript to expand/collapse the text, as well.
Post Reply