Understand DLNA Code #80

Closed
opened 2026-02-06 19:16:44 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @anthonylavado on GitHub (Dec 14, 2018).

As part of #126, some changes were made regarding the naming of the DLNA server. @BnMcG made an interesting observation as part of his changes:

40c95d9804/Emby.Dlna/Api/DlnaServerService.cs (L226-L230)

We should really try to understand what's happening there, and if we need to make any changes.

Originally created by @anthonylavado on GitHub (Dec 14, 2018). As part of #126, some changes were made regarding the naming of the DLNA server. @BnMcG made an interesting observation as part of his changes: https://github.com/jellyfin/jellyfin/blob/40c95d98045fb826229fdeac2477d73ae542a95e/Emby.Dlna/Api/DlnaServerService.cs#L226-L230 We should really try to understand what's happening there, and if we need to make any changes.
OVERLORD added the backendgood first issue labels 2026-02-06 19:16:44 +03:00
Author
Owner

@LeoVerto commented on GitHub (Dec 14, 2018):

Looks like it somehow strips mediabrowser/emby/jellyfin from the path but I'm not really proficient in .NET and the documentation for PathInfo seems really lacking to me.

@LeoVerto commented on GitHub (Dec 14, 2018): Looks like it somehow strips mediabrowser/emby/jellyfin from the path but I'm not really proficient in .NET and the [documentation for PathInfo](https://docs.microsoft.com/en-us/dotnet/api/system.web.httprequest.pathinfo?view=netframework-4.7.2) seems really lacking to me.
Author
Owner

@BnMcG commented on GitHub (Dec 14, 2018):

I'll take a look at the DLNA spec and see if that makes it clearer

-------- Original Message --------
On 14 Dec 2018, 08:03, LeoVerto wrote:

Looks like it somehow strips mediabrowser/emby/jellyfin from the path but I'm not really proficient in .NET and the documentation for PathInfo seems really lacking to me.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@BnMcG commented on GitHub (Dec 14, 2018): I'll take a look at the DLNA spec and see if that makes it clearer -------- Original Message -------- On 14 Dec 2018, 08:03, LeoVerto wrote: > Looks like it somehow strips mediabrowser/emby/jellyfin from the path but I'm not really proficient in .NET and the [documentation for PathInfo](https://docs.microsoft.com/en-us/dotnet/api/system.web.httprequest.pathinfo?view=netframework-4.7.2) seems really lacking to me. > > — > You are receiving this because you were mentioned. > Reply to this email directly, [view it on GitHub](https://github.com/jellyfin/jellyfin/issues/145#issuecomment-447246576), or [mute the thread](https://github.com/notifications/unsubscribe-auth/ACbSNLh4Zxp2bRSrjCePBhHSiGZjqmRcks5u41s0gaJpZM4ZS3to).
Author
Owner

@PrplHaz4 commented on GitHub (Dec 14, 2018):

It looks like it's trying to get the resource id (TargetServerUuid) out of the path - it's used in this method: 40c95d9804/Emby.Dlna/Api/DlnaServerService.cs (L208)

Since we control the servers now, theoretically maintaining BC here should not be needed, as our server root will likely only ever be "jellyfin".

Lazy test here would probably be just logging every output of that method when a DLNA share is accessed.

@PrplHaz4 commented on GitHub (Dec 14, 2018): It looks like it's trying to get the resource id (TargetServerUuid) out of the path - it's used in this method: https://github.com/jellyfin/jellyfin/blob/40c95d98045fb826229fdeac2477d73ae542a95e/Emby.Dlna/Api/DlnaServerService.cs#L208 Since we control the servers now, theoretically maintaining BC here should not be needed, as our server root will likely only ever be "jellyfin". Lazy test here would probably be just logging every output of that method when a DLNA share is accessed.
Author
Owner

@andrewrabert commented on GitHub (Dec 22, 2018):

This issue, as it is currently titled, is not a valid issue. Understanding is important, but how do we define this as done? The answer to that question, if there is one, validates the existence of this card.

Please reopen if modified to be actionable.

@andrewrabert commented on GitHub (Dec 22, 2018): This issue, as it is currently titled, is not a valid issue. Understanding is important, but how do we define this as done? The answer to that question, if there is one, validates the existence of this card. Please reopen if modified to be actionable.
Author
Owner

@anthonylavado commented on GitHub (Dec 22, 2018):

@nvllsvm - Sorry about that. Perhaps it should have been: “Do we need to keep these lines for Emby and MediaBrowser”, but I’m fine leaving them in as is. It doesn’t seem to hurt us.

@anthonylavado commented on GitHub (Dec 22, 2018): @nvllsvm - Sorry about that. Perhaps it should have been: “Do we need to keep these lines for Emby and MediaBrowser”, but I’m fine leaving them in as is. It doesn’t seem to hurt us.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#80