TVDB are updating their site. Their site currently has a number of bugs that have broken the TVDB scraper and any add-on that relies on TVDB data. TVDB are working to rectify the problems.

  •   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 22
  •   
HEADS UP: Filling a list from a directory/plugin
#16
I was playing around w/ the plugin and I noticed that if I set the runtime via liz.setInfo it's not returned, instead if I add it via liz.setProperty (changing the frontend xml accordingly) it works.

Is it supposed to work like this?
Image Image
Did I Help? Add to my reputation
Reply
#17
Mind detailing the code you're using?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#18
I tried using Your plugin.test.me

with frontend calling for:

Code:
<control type="label">
          <width>800</width>
          <height>20</height>
          <font>Size20</font>
          <textcolor>Grey3</textcolor>
          <align>right</align>
          <label>$LOCALIZE[180]: [COLOR Silver][B]$INFO[ListItem.Runtime] $LOCALIZE[12391][/B][/COLOR]</label>
        </control>

nothing was there..

so I changed line 84 from
Code:
liz.setInfo( type="Video", infoLabels={ "Runtime": item['runtime']/60 })
to
Code:
liz.setProperty("Runtime", str(item['runtime']/60))

and now my frontend calls for

Code:
<control type="label">
          <width>800</width>
          <height>20</height>
          <font>Size20</font>
          <textcolor>Grey3</textcolor>
          <align>right</align>
          <label>$LOCALIZE[180]: [COLOR Silver][B]$INFO[ListItem.Property(Runtime)] $LOCALIZE[12391][/B][/COLOR]</label>
        </control>

and the runtime is there.
Image Image
Did I Help? Add to my reputation
Reply
#19
That would be because you want "Duration" on the setInfo, and similarly ListItem.Duration.

Don't trust my python 'code' Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#20
(2013-11-16, 01:07)jmarshall Wrote: That would be because you want "Duration" on the setInfo, and similarly ListItem.Duration.

Don't trust my python 'code' Smile

Smile

sweet.
in fact on the original page I used ListItem.Duration, but I assumed runtime was a new addition eheh.

Sorry for the trouble!

Thanks.
Image Image
Did I Help? Add to my reputation
Reply
#21
this is great anyways!!

being able to populate (sub)panels for Moviesets on the fly without using nested grouplists and crazymany <item> lines... priceless!!!!

Great addition!

is there anyway to call content refresh w/out reloading page?

edit: nevermind. It does automatically refresh w/out reloading! I create a list based on calling

plugin://test.plug.in/,$INFO[Container(%n).ListItem.foo)

the plugin uses last part of the string as filter for creating a dir.

and it gets updated when Container(%n).ListItem.foo changes.

so not only on window load. maybe someone else will find this useful.
Image Image
Did I Help? Add to my reputation
Reply
#22
Correct, it changes if the path changes. For a static path (i.e. one not filled in by an infolabel) that would be on window load.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#23
Can't seem to pull posters when using

<content target="video">$INFO[Container.ListItem.Path]</content>

on set folders. But it is getting filled with (and plays) the right movies.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#24
(2013-12-05, 14:32)MassIV Wrote: Can't seem to pull posters when using

<content target="video">$INFO[Container.ListItem.Path]</content>

on set folders. But it is getting filled with (and plays) the right movies.

+1

all the infolabels are there, but no art.
Image Image
Did I Help? Add to my reputation
Reply
#25
also I was wondering if there could be a way to add items before (or after the list) for example:

Code:
[...]
<content target="video">

  <item>
     <label>$INFO[Window.Property(foo)]</label>
     <label2>$INFO[Window.Property(foo)]</label2>
     <thumb>$INFO[Window.Property(foo.Art(poster))]</thumb>
  </item>

  <foo mark indicating from now on is not single item>
     videodb://recentlyaddedmovies/
  </foo mark indicating from now on is not single item>

</content>

so that everything is under the same list ID
just shouting, maybe there's an easy way to acheive the same result i'm not seeing. Wink
Image Image
Did I Help? Add to my reputation
Reply
#26
I also just tried using <content target="video">videodb://recentlyaddedmovies/</content>. Three things would be nice:

  1. There's currently no art available (this was mentioned already)
  2. If there is a db scan running, the list doesn't update
  3. It seems that the list will be updated if the window will be (re-)activated. Would be nice if it could be cached somehow so it doesn't need to be reloaded if there was no change.
If those things are working, we almost wouldn't need skin widgets anymore.

Edit: There also seems no proper way of playing the items, they always start from the beginning.
Image
Reply
#27
There's no art setting, but I'd recommend doing it from a plugin anyway - that way you retrieve the items (with art) via JSON-RPC and can sort or whatever you like on top of it.

Playback should work fine, though ofcourse it doesn't know anything other than the path to play.

The list won't auto-refresh at all - it does so on window load only. There wasn't a decent criteria for checking, so I didn't add a check.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#28
I know that there is no art setting in python but why is it not working if I use library paths? Everything else is working, I can use all info labels except thumb, poster, fanart etc.

Playback is working fine now, I used .Path instead of .FileNameAndPath. Smile
Image
Reply
#29
The art stuff is normally handled in the background thumbloaders, which don't run on these lists.

You can definitely set art on stuff from python, though probably only the fanart and thumb properties?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#30
But what if I just want to use library path without an extra add-on? Is it not possible to add art stuff to those lists?
Image
Reply
  •   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 22
  •   
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
HEADS UP: Filling a list from a directory/plugin51