Files
ersatztv/ErsatzTV.Core/Hdhr/DeviceXml.cs
T
8488fe5d3d Used a UUID in HDHomeRun config to allow multiple instances on a same network (#1810)
* Used a UUID in HDHomeRun config to allow multiple instances on a same network

* tweak some async calls

* try to fix line endings

---------

Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
2024-07-27 08:51:45 -05:00

23 lines
684 B
C#

namespace ErsatzTV.Core.Hdhr;
public record DeviceXml(string Scheme, string Host, Guid uuid)
{
public string ToXml() =>
@$"<root xmlns=""urn:schemas-upnp-org:device-1-0"">
<URLBase>{Scheme}://{Host}</URLBase>
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
<friendlyName>ErsatzTV</friendlyName>
<manufacturer>Silicondust</manufacturer>
<modelName>HDTC-2US</modelName>
<modelNumber>HDTC-2US</modelNumber>
<serialNumber>{uuid}</serialNumber>
<UDN>uuid:{uuid}</UDN>
</device>
</root>";
}