Ticket #253 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

if a branch has not been retrieved it says(0) items

Reported by: eFfeM Assigned to: dev (accepted)
Priority: minor Milestone:
Component: UI Version:
Keywords: Cc:

Description

if a branch has not been retrieved it says(0) items, where it is actually unknown. THis happens at least with iradio where branches that are not yet retrieved list as 60s(0) etc.

Change History

12.10.2009 14:25:48 changed by jmsizun

  • owner changed from dev to jmsizun.
  • status changed from new to assigned.

quick answer: not really a bug.

The branch is populated only at first activation. Populating all branches in advance is not really enforceable as it would mean too many calls to the remote "service" (the shoutcast server is specifically touchy in this respect).

Unfortunately, as far as i know, the UpnP spec does not specify any "unknown" child count value. So the branches yet-to-be-populated are marked with childCount=0.

However, we may come up with some other behaviour:

- make sure some preselected branches are always populated

- mark unpopulated branched (e.g. with a "(*) prefix in the title ou extended protocol attributes)

- ??

What should be the behaviour you would prefer?

12.10.2009 14:38:38 changed by dev

  • component changed from Core to UI.

jmsizun: you are right that this can't be solved on the UPnP level.

But this is something we could (and probably should) handle in the UI components of Totem and the Inspector.

If we haven't queried the container yet the value is (unknown), after retrieving the childCount we replace it with the proper number.

25.10.2009 16:34:52 changed by jmsizun

  • owner changed from jmsizun to someone else.
  • status changed from assigned to new.

25.10.2009 17:59:15 changed by dev

  • owner changed from someone else to dev.
  • status changed from new to assigned.