ums.conf changing, adding "\\" backslashes

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
DrStein99
Posts: 2
Joined: Thu Feb 04, 2021 6:39 am

ums.conf changing, adding "\\" backslashes

Post by DrStein99 »

Each time I "service ums restart", the ums.conf IS CHANGED. Below is one (of many) examples for the fields that are being changed.

Original:
language = "en-US"

Change after restart service:
language = \\\\\\\\\\\\\"en-US\\\\\\\\\\\\\"

Can anyone advise? What function re-writes the ums.conf file, and why is it adding lots of backslashes to many fields?
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: ums.conf changing, adding "\\" backslashes

Post by Nadahar »

UMS can and will overwrite the configuration file whenever it feels like it, so you should always stop UMS before editing the file.

I can't explain the exact bug you're experiencing except to say that neither quotes (') nor double quotes (") are recognized by UMS. As such, you should use

Code: Select all

language = en-US
..because UMS will take it literary and look for the language "en-US", including the double-quotes, which it won't find.
DrStein99
Posts: 2
Joined: Thu Feb 04, 2021 6:39 am

Re: ums.conf changing, adding "\\" backslashes

Post by DrStein99 »

Thank you for advise. I have been updating the .conf file during service enabled. I will edit this when service is stopped.

Are NO quotation marks EVER used - or just on that field?
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: ums.conf changing, adding "\\" backslashes

Post by Nadahar »

Quotation marks doesn't have a "special meaning", so they are taken literary in all of UMS' configuration files.
Post Reply