Page 1 of 1

TS 7.x - New XML DeviceDB entries get ignored??

Posted: Tue Sep 25, 2012 4:07 pm
by ThyMaster
Hi Folks,

coming from version 5.1.6(!) I made quite some amendments to my old DeviceDB (called client.db those days).
As an example I set my Philips devices to music-only devices by manually altering the respective entries in the DeviceDB.

Now with version 7 new XML files have been introduced and even a 00Readme.txt is there to help to migrate.

But whatever I do the changes I make to the XML files are getting completely ignored.

Example:
I try to make my Philips MP ( Philips_Music_Player_NP2x00.xml) a music-only device.
According to 00Readme.txt I'm supposed to add <SupportedMediaType>Music</SupportedMediaType> to the 'Device adaptation elements' section.
Hence my XML file looks like this:

Code: Select all

<Client>
        <DeviceId>
                <DisplayName>Philips Music Player NP2x00</DisplayName>
                <DeviceDescriptionRecognition>
                        <DescriptionText>NP2x00</DescriptionText>
                </DeviceDescriptionRecognition>
                <MappingUpdatePolicy>FIX</MappingUpdatePolicy>
        </DeviceId>
        <Capabilities>
                <Scaling>
                        <Target>JPEG42x42</Target>
                        <Target>JPEG320x240</Target>
                        <Target>JPEG640x480</Target>
                </Scaling>
                <SupportedMediaProfiles>
                        <Profile>AASCALE#JPEG320x320</Profile>
                </SupportedMediaProfiles>
        </Capabilities>
        <Adaptations>
                <DLNA>
                        <Version>DLNA10</Version>
                </DLNA>
               <SupportedMediaType>Music</SupportedMediaType>
        </Adaptations>
        <DeviceQuirks>
                <Quirk>PHILIPSSEARCH</Quirk>
                <Quirk>NOARTISTROLECOMPOSER</Quirk>
        </DeviceQuirks>
</Client>
Restarted TS but the Philips device still shows all media types.

Any ideas what's wrong??

- ThyMaster

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Tue Sep 25, 2012 6:19 pm
by phibertron
You had it in the wrong place, try this, it is now under Capabilities

Code: Select all

<Client>
        <DeviceId>
                <DisplayName>Philips Music Player NP2x00</DisplayName>
                <DeviceDescriptionRecognition>
                        <DescriptionText>NP2x00</DescriptionText>
                </DeviceDescriptionRecognition>
                <MappingUpdatePolicy>FIX</MappingUpdatePolicy>
        </DeviceId>
        <Capabilities>
                <Scaling>
                        <Target>JPEG42x42</Target>
                        <Target>JPEG320x240</Target>
                        <Target>JPEG640x480</Target>
                </Scaling>
                <SupportedMediaProfiles>
                        <Profile>AASCALE#JPEG320x320</Profile>
                </SupportedMediaProfiles>
                <SupportedMediaType>Music</SupportedMediaType>
        </Capabilities>
        <Adaptations>
                <DLNA>
                        <Version>DLNA10</Version>
                </DLNA>
        </Adaptations>
        <DeviceQuirks>
                <Quirk>PHILIPSSEARCH</Quirk>
                <Quirk>NOARTISTROLECOMPOSER</Quirk>
        </DeviceQuirks>
</Client>

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Wed Sep 26, 2012 6:33 am
by ThyMaster
Hi Phiberton,

thx al ot for the quick answer.
I should have mentioned it:
I tried that, too. But still it seems the setting gets completely ignored.

I use the AV=M setting in Client.db underTMS 5.1.6 and the Philips device jumps straight to music, not offering the "Music, Pictures, Videos" selection first.
According to 00Readme.txt of version 7.0.9 this should now translate into <SupportedMediaType>Music</SupportedMediaType>

But no avail.
I also tried it on various locations in the XML file, again no avail.

- ThyMaster

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Wed Sep 26, 2012 10:23 pm
by phibertron
when you made the changes, did you restart the server?
as they wont take effect until you do

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Wed Sep 26, 2012 10:55 pm
by parnott
I think you may be missing the <MediaTypeList> tag that surrounds <MediaType> entries. Here is the <Capabilities> section from the Philips Streamium and Roku Soundbridge profiles. Both of these are audio only devices. It works on my Roku.

Code: Select all

	<Capabilities>
		<MediaTypeList>
			<MediaType>MUSIC</MediaType>
		</MediaTypeList>
	</Capabilities>

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Wed Sep 26, 2012 11:41 pm
by phibertron
parnott, good catch on that setting

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Thu Sep 27, 2012 8:02 am
by ThyMaster
Hi Guys,

I also figured the Roku setting (since I own one device myself).
Funny enough, if you delete the

Code: Select all

<Capabilities>
      <MediaTypeList>
         <MediaType>MUSIC</MediaType>
      </MediaTypeList>
   </Capabilities>
part it won't change a thing.
I also tried this with my Philips again: No change!

And yes, I restarted the server every time I applied a change...

-ThyMaster

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Thu Sep 27, 2012 5:23 pm
by phibertron
It is interesting that the Philips Music Player NP1100 profile
has the <MediaType>MUSIC</MediaType> setting in its profile
and the Philips Music Player NP2x00 does not, not sure why on one but not the other
its possible, that the client doesnt respect the setting and asks for all root folders no matter what

but I bet you could edit or create a new view that had a music only tree, and assign it to the device
that should do the trick

For example

Code: Select all

<view name='ipodlike' path='ipodlike.view'>
	<navtree>
		<container id='music'>
			<link id='music/all' />
			<link id='music/genre' />
			<link id='music/artists' />
			<link id='music/albums' />
			<link id='music/composers' />
			<link id='music/playlists' />
			<link id='music/mytwonky' />
		</container>
	</navtree>
</view>

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Thu Sep 27, 2012 10:05 pm
by parnott
ThyMaster wrote:Hi Guys,

I also figured the Roku setting (since I own one device myself).
Funny enough, if you delete the

Code: Select all

<Capabilities>
      <MediaTypeList>
         <MediaType>MUSIC</MediaType>
      </MediaTypeList>
   </Capabilities>
part it won't change a thing.
I also tried this with my Philips again: No change!

And yes, I restarted the server every time I applied a change...

-ThyMaster
Are you saying that your Roku is not going directly to the Music tree as well?

If it is then that is not what I see on mine. When I select Play Twonky7>Browse I only get the Music folders, e.g. Album, Artist, etc.

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Fri Sep 28, 2012 6:46 am
by ThyMaster
Hi Folks,

thanks for the answers.

@Phiberton:
Yes, I could work around this (again) with a separate Music-only tree but still the Philips would give me first the tree view (even if it states 'Music' only then) instead of jumping straight into my music folders (as it is now with the AV=M setting of TMS 5.1.6)
So it is not really a solution!

@parnott:
You're actually pointing out another problem with Roku:
With TMS 5.1.6 I'm also using the AV=M setting to allow the RokuSB not to jump straight to the music tree content but rather allow the RokuSB to show it's own tree system, too.
That way I can still use the very handy search feature of the RokuSB plus having my tree view from TMS available at the same time.
So again a working XML setting would be great!

Oh well, still sticking with my TMS 5.1.5 then...It's really a bit saddening, v6 andv7 have been major steps backwards if comes to features (at least the ones I favor)

- ThyMaster

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Fri Sep 28, 2012 3:00 pm
by phibertron
that surely is odd, that if the client profile is using a music only tree view
that it is able to show an option for the other branches

curious, have you modified the view-definitions.xml in any way?

I would say that, if the issue is not happeing in 5.x and it is happening in 6.x and 7.x
that I would report it to twonky support site and also email them about it
as it could just be a bug with those clients

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Thu Oct 04, 2012 10:41 pm
by phibertron
I noticed that you first example used lower case

Code: Select all

<SupportedMediaType>Music</SupportedMediaType>
I wonder if it is a matter of case

Code: Select all

<SupportedMediaType>MUSIC</SupportedMediaType>
But in the end it might not matter, as they may have removed the code
even though its in the 00readme.txt

I didnt see it used anywhere, but the other<MediaTypeList> was used
but it is not documented in the 00readme.txt

Re: TS 7.x - New XML DeviceDB entries get ignored??

Posted: Thu Oct 04, 2012 10:47 pm
by phibertron
Dont bother, it didnt make any difference