mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
DLNA Profile detection does not work correctly #2955
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pablocpas on GitHub (Apr 18, 2021).
Originally assigned to: @BaronGreenback on GitHub.
Describe the bug
I was trying to differentiate the DLNA profiles of two different LG TVs in my house (both with WebOS but one 4K and one 1080p). For this I have given them a friendly name (Room) but jellyfin does not recognize them and it shows them as no matching device profile in the log and also shows the device data that matches the friendly name. I have also noticed that it only recognizes it by adding a header like LG's default profile but that does not allow me to differentiate the two televisions.
System (please complete the following information):
To Reproduce
Expected behavior
It should recognize the friendly name (Room) and thus be able to differentiate one tv from another.
Logs
[2021-04-18 09:51:12.132 +02:00] [INF] [141] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used.
DeviceDescription:
FriendlyName:Room
Manufacturer:LG Electronics.
ManufacturerUrl:http://www.lge.com
ModelDescription:LG WebOSTV DMRplus
ModelName:LG TV
ModelNumber:1.0
ModelUrl:
SerialNumber:
Screenshots

Additional context
@BaronGreenback commented on GitHub (Apr 18, 2021):
Could you upload the two xml profiles from the config/dlna/user folder please?
@pablocpas commented on GitHub (Apr 18, 2021):
Profiles.zip
@BaronGreenback commented on GitHub (Apr 19, 2021):
The follow fields all must match for a profile to be selected.
Manufacturer,ModelName,ModelNumber,FriendlyName,ManufacturerUrl,ModelUrl,ModelDescription,SerialNumberPopulating these fields with the values you lists above should enable a match to be made.
@pablocpas commented on GitHub (Apr 19, 2021):
So why does the interface say "Enter at least one identification criteria"?
And I understand that adding the same fields to the two profiles except the friendly name (Room and Kitchen) should work. Correct?
@BaronGreenback commented on GitHub (Apr 19, 2021):
Sorry - haven't looked at the web-server end.
At the moment it matches on all the following fields. So would need two profiles. (editing the xml directly will be faster)
Looking at what you're attempting, it does seem to be a pain.
@pablocpas commented on GitHub (Apr 19, 2021):
I don't understand, so now is it impossible to do this?
I think it would be better if it works as the interface indicates and only needs one field to match. In fact, even if the fields don't match, if only the header matches, it does recognize the profile, it should work like this with all fields.
Edit: And if fields coincide in several profiles, choose the one that matches the most fields.
@BaronGreenback commented on GitHub (Apr 19, 2021):
See PR #5861 above
@BaronGreenback commented on GitHub (Apr 19, 2021):
It is possible to do with the version you've got installed. You just need to populate all the fields.
Post #5861 - you should be able to do this with the config you currently have.
@pablocpas commented on GitHub (Apr 19, 2021):
Ok, thanks for the work. All the best
@pablocpas commented on GitHub (Apr 30, 2021):
I've been testing linuxserver nightly with merged changes (#5861) but it still doesn't work. It seems that the problem is the http headers since with the profiles indicated at the beginning they are not recognized because the default 'LG Smart TV' has priority because it has the headers.
If I create two profiles modifying the default 'LG Smart TV' with the friendly names of each one, it only recognizes one of the profiles
@BaronGreenback commented on GitHub (Apr 30, 2021):
I know the code your referring to - have been looking to see what can be done with it - including adding an ip address, and linking it across with the playTo environment so that once a device is "known" to playTo, it will also be "known" everywhere else.
I take it, both TV's are sending the same host headers to the system for playback?
@pablocpas commented on GitHub (Apr 30, 2021):
Indeed, both are sending the same headers to the system and it is impossible to differentiate one tv from the other.
Thanks, hope you can fix it. All the best.