IDEA: Better Container.Content/Foldername

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 9,921
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #11
As discussed previously -

Container.AddonName to return the current Addon's name as defined in the addon.xml.

[Image: sig_zps3af3b48e.jpg]
find quote
pecinko Offline
Donor
Posts: 3,001
Joined: Dec 2008
Reputation: 26
Location: Prague / Belgrade
Post: #12
I would like to suggest considering different usage of label2, based on Button id="3" (sorting) in Movies.

- Sort by name - no label2 shown
- Sort by runtime - label2 shows shorter time (as with listitem.duration) or at least time without seconds
- Sort by times played - don't show zeroes

My skins:

Quartz
Amber
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #13
@pecinko: Good suggestions (though I don't see why sort by name should erase label2), please open a separate thread for this.

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: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #14
jmarshall Wrote:There is "files" I think already?

i've only just got around to test it...

Container.Content(Files) did indeed work on builds before the files_in_lib merge, but it's broken on anything after.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #15
Where do you think "files" should apply?

ATM we set it to empty everywhere in the files node that does not have content set.

I'm not sure what advantage setting it to "files" has, unless you're using it elsewhere as well?

Cheers,
Jonathan

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: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #16
jmarshall Wrote:Where do you think "files" should apply?

ATM we set it to empty everywhere in the files node that does not have content set.

I'm not sure what advantage setting it to "files" has, unless you're using it elsewhere as well?

Cheers,
Jonathan

i'm trying to create different views for the root of the videolibrary and file nodes with no content set.

i don't think there's currently a way to do this, using Container.Content() as a visible condition.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #17
Ah, so you want Container.Content(files) to apply to the "Files" listing, and everything below that that doesn't otherwise have content set?

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: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #18
jmarshall Wrote:Ah, so you want Container.Content(files) to apply to the "Files" listing, and everything below that that doesn't otherwise have content set?

not exactly i think. imo Container.Content(Files) should only apply to sources with no content set.
so it should not apply to root/overview listings.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #19
Sure - root/overview isn't files lists. What I meant is if I have a particular share without any content set, if I go into that share and down 5 folders, it should still be Content(files), right?

Cheers,
Jonathan

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: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #20
jmarshall Wrote:Sure - root/overview isn't files lists. What I meant is if I have a particular share without any content set, if I go into that share and down 5 folders, it should still be Content(files), right?

Cheers,
Jonathan

correct ;-)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote