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

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
ThyMaster
Posts:192
Joined:Mon Aug 15, 2005 11:47 am
TS 7.x - New XML DeviceDB entries get ignored??

Post by ThyMaster » Tue Sep 25, 2012 4:07 pm

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Tue Sep 25, 2012 6:19 pm

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>
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

ThyMaster
Posts:192
Joined:Mon Aug 15, 2005 11:47 am

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

Post by ThyMaster » Wed Sep 26, 2012 6:33 am

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Wed Sep 26, 2012 10:23 pm

when you made the changes, did you restart the server?
as they wont take effect until you do
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

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

Post by parnott » Wed Sep 26, 2012 10:55 pm

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>

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Wed Sep 26, 2012 11:41 pm

parnott, good catch on that setting
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

ThyMaster
Posts:192
Joined:Mon Aug 15, 2005 11:47 am

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

Post by ThyMaster » Thu Sep 27, 2012 8:02 am

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Thu Sep 27, 2012 5:23 pm

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>
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

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

Post by parnott » Thu Sep 27, 2012 10:05 pm

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.

ThyMaster
Posts:192
Joined:Mon Aug 15, 2005 11:47 am

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

Post by ThyMaster » Fri Sep 28, 2012 6:46 am

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Fri Sep 28, 2012 3:00 pm

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
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Thu Oct 04, 2012 10:41 pm

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
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Thu Oct 04, 2012 10:47 pm

Dont bother, it didnt make any difference
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Locked