Page 1 of 1

user-profiles.xml recognized on one server, but not the othe

PostPosted: Sun Oct 21, 2018 5:57 am
by mherger
Hi there!

I'm a new Serviio user - and like it very much so far!

After testing the software on my Mac (macOS 10.12) and creating a user-profiles.xml to tweak the thumbnail size and display name I set Serviio up on a Rock64 using Debian 9. It's all up and running nicely, serving > 40k photos.

The only issue I'm having right now is that it's ignoring my user-profiles.xml. It's a copy of what I tested on the Mac. It's found and parsed correctly (if I read the log file right):

  Code:
2018-10-21 07:28:07,266 INFO  [ProfileManager] Loading profiles from file /user-profiles.xml
2018-10-21 07:28:07,424 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2018-10-21 07:28:07,429 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (M-series - custom)' (id=sam_mx)


Alas, the tweaks don't take effect. Neither the custom name nor the thumbnails change take effect. I'm running 1.10 on the Linux box, 1.9.2 Mac right now, but experienced the same with 1.9.2 on both.

Any hints as to what might be causing this?

Michael

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Sun Oct 21, 2018 2:08 pm
by atc98092
I don't think the thumbnail size will work with a custom profile. I thought that was a global setting. But Zip can answer for sure.

Could you attach your custom file here, so we can see exactly what you are attempting with it?

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Sun Oct 21, 2018 7:50 pm
by zip
It should work, if your device is picking up the right (custom) profile.

You can see the detailed log to see what profile is used in the responses to your TV.

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Mon Oct 22, 2018 7:55 am
by mherger
As the subject line says that one same user-profiles.xml file is working on one machine, but not the other.

I'll get a detailed log when I'm back home tonight.

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Mon Oct 22, 2018 4:05 pm
by mherger
Ok, attached you'd find both the user-profiles.xml file as well as the detailed log file. The device I'd like customise is the Samsung TV set. Thanks for looking into this!

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<Profiles version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.serviio.org/xsd/profiles/v/1.9.1/Profiles.xsd">
   <Profile id="sam_mx" name="Samsung TV / player (M-series - custom)" extendsProfileId="sam_m">
                <DeviceDescription>
                        <FriendlyName>Fötelisammlung ({computerName})</FriendlyName>
                </DeviceDescription>
      <Detection>
         <UPnPSearch>
            <ModelName>(^UE55MU6270.*)</ModelName>
            <ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
         </UPnPSearch>
         <HttpHeaders>
            <!-- some models only support headers -->
            <User-Agent>(.*SEC_HHP_\[TV\] [A-Z]{2}\d{2}M[A-Z]?\d{3,4}.*)</User-Agent>
         </HttpHeaders>
      </Detection>
      <ThumbnailsResolution>HD</ThumbnailsResolution>
   </Profile>
</Profiles>


Re: user-profiles.xml recognized on one server, but not the

PostPosted: Mon Oct 22, 2018 8:50 pm
by zip
I can see it's using the Samsung M series profile

  Code:
2018-10-22 17:50:41,480 DEBUG [RendererManager] Adding renderer Renderer[uuid='907ff95d-fe4d-47fa-92c2-b3768c56b99d', ipAddress='192.168.0.84', name='UE55MU6270', profileId='sam_m', manuallyAdded=false, forcedProfile=false, enabled=true, accessGroupId=1, friendlyName='null'] to list of active renderers


It's probably because the detection is first matched by the built-in profile.

You can force your profile to be used for your device in the Console (Status tab).

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Tue Oct 23, 2018 7:29 am
by mherger
Oh wow... that was easy... almost embarrassing... thank you very much!

Re: user-profiles.xml recognized on one server, but not the

PostPosted: Tue Oct 23, 2018 1:13 pm
by zip
glad it worked