20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

custom window with custom info.
I'm using a remote connected to a personal film database in wich I store the DVD info.
When browsing database and selecting a film preview I'd like to have it also displayed on the TV screen.

What I did for now is just editing MyVideo.xml and display some 'static info' in order to get use to XML coding.
when I want XBMC to display this screen I send an http request

But now I would like to fill this screen with real values trough the http API.

I tried using the cmd ExecBuiltIn(SetProperty(Title,alien)) and set my label info to :

But that does not work.

Do I have to write my own window with container ? Or some python script to fill a container property ?

Look to DialogVideoInfo.xml
That is what you are creating.
Thks for answer.
Layout is quite the same, but the pb remains : how can I fill the ListItem properties ?
as far as I know you can't these things need to be passed down from the parent windows in the code or it just uses the current windows Listitem stuff
In fact with the http request I can set the window container property :

.. and try to display it in a label :
        <control type="label"> <!-- title value -->
            <description>Title Value</description>

But that does not work, I tried with and without "$INFO", with only info tag set.

I lanched XBMC in debugging mode and apparently when executing request the server fails to retreive the windows handler.

In file Builtins.cpp :
else if (execute.Equals("setproperty") && params.size() == 2)
    CGUIWindow *window = g_windowManager.GetWindow(g_windowManager.GetActiveWindow());
    if (window)

GetActiveWindow() returns 10024 (Myvideo) but GetWindow always returns NULL ! I've tried it with confluence and PM3.HD skin.
I don't understand why GetWindow returns NULL.

I thought of another way to change container info : make a python script, that request my external db and fill the container with infos

what do you think ?

but, there was a fix just applied if your window is a dialog. so you'll need to update to latest svn
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Hi !
I've just check that it has to be window.property.

Now Im not sure I have to use :

Or does it finaly converge to the same process ?

I'll just try it now both...
I've seen the diff change to getFocusedWindow to check also for dialogs ...
Anyway for my needs first option is sufficient.
Yes ! found it ! Big Grin

Regarding to the code (look at the end) the info must be entered in that way :
Though I prefer the first line, both work the same way, till I cannot say if its always equivalent for other controls ?

Please notice that I've put the window 'myvideofiles' and not 'myvideos', because
The InfoManager retreive id 10006 for myvideos while the server retreive 10024, and then nothing is displayed. Huh
The manual says that 10006 (myvideos) is a wraper to myvideosfiles but it seems taht there's some glue missing.

About the getWindow() returning NULL, that was my debugger that was losing context (yet XBMC was compiled with -O2 ) and somethings displaying NULL/0 values.

Howto test that

Enable http server in your skin.
With a web browser activate the window with this cmd :
then set the window property :
ExecBuiltIn(SetProperty(title,alienation 2))

In this order as the SetProperty() does not take any argument for a window ID and work with the current ID. I may add this feature if needed later.

I don't think that be useful for many people because most of us use simple remote and display everything on XBMC. But for more advanced remote and custom DB that could be interesting feature.

  else if (strCategory.Left(6).Equals("window"))
    CStdString info = strTest.Mid(strCategory.GetLength() + 1);
    // special case for window.xml parameter, fails above
    if (info.Left(5).Equals("xml)."))
      info = info.Mid(5, info.GetLength() + 1);
    if (info.Left(9).Equals("property("))
      int winID = 0;
      if (strTest.Left(7).Equals("window("))
        CStdString window(strTest.Mid(7, strTest.Find(")", 7) - 7).ToLower());
        winID = CButtonTranslator::TranslateWindowString(window.c_str());
      if (winID != WINDOW_INVALID)
        int compareString = ConditionalStringParameter(info.Mid(9, info.GetLength() - 10));
        return AddMultiInfo(GUIInfo(WINDOW_PROPERTY, winID, compareString));
Thanks to everyone who helped me !
Really XBMC rocks !
It also works when displaying image :

        <control type="image"> <!-- video jacket -->
I wanted to set such screen for CD/playlist preview :

For now I just :
  • Used info property for title, jacket, and tracks.
  • each track displayed is a label as I could not bind these info to a list container.

The problem is that I can't just do that way with tracks as I need the player to play the whole list.

I found that XBMC http API has commands for playlist manipulation :

I'm using this a I can set XBMC to play all tracks alone.

But I did not find out which container ID (if there is one) can display the current playlist selected ?

Finally, is there any wiki page that list those container id association ?
When I give a look to Confluence/myPlaylistEditor(), sometime à see a reference to conainer ID 50 and sometimes a container ID 100, how are they selected ?

Otherwise I thought about writing a script that could fill a container, but which one ?

Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help
custom window with custom info.00