• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Cast To DLNA (Sonos) device name

     
    • 1 Vote(s) - 5 Average

    Cast To DLNA (Sonos) device name

    Shorten DLNA discovered full device name to speaker name
    PeteyMW
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:United Kingdom
    #4
    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Cast To DLNA (Sonos) device name - by PeteyMW - 2024-05-29, 05:58 AM
    RE: Cast To DLNA (Sonos) device name - by TheDreadPirate - 2024-05-29, 03:14 PM
    RE: Cast To DLNA (Sonos) device name - by PeteyMW - 2024-06-02, 08:26 AM
    RE: Cast To DLNA (Sonos) device name - by PeteyMW - 2024-06-09, 06:05 AM
    RE: Cast To DLNA (Sonos) device name - by dwev - 2024-10-04, 09:32 AM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode