2024-06-09, 06:05 AM
For info,
I resolved this by building Jellyfin.Plugin.Dlna.dll with a small tweak. In source code jellyfin-plugin-dlna\src\Jellyfin.Plugin.Dlna\PlayTo\PlayToManager.cs:
Replaced:
string deviceName = device.Properties.Name;
With:
string deviceName = device.Properties.Name.Substring(device.Properties.Name.LastIndexOf('@'));
- my Sonos speakers now appear as their speaker name (e.g. previously presented as '192.168.1.30 - Sonos Play:1 - RINCON_#MAC# @Kitchen - DLNA', now simply '@Kitchen - DLNA').
- other devices, without @ in their uPnP name, are unaffected.
Cheers,
Pete
I resolved this by building Jellyfin.Plugin.Dlna.dll with a small tweak. In source code jellyfin-plugin-dlna\src\Jellyfin.Plugin.Dlna\PlayTo\PlayToManager.cs:
Replaced:
string deviceName = device.Properties.Name;
With:
string deviceName = device.Properties.Name.Substring(device.Properties.Name.LastIndexOf('@'));
- my Sonos speakers now appear as their speaker name (e.g. previously presented as '192.168.1.30 - Sonos Play:1 - RINCON_#MAC# @Kitchen - DLNA', now simply '@Kitchen - DLNA').
- other devices, without @ in their uPnP name, are unaffected.
Cheers,
Pete