mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-04 05:12:51 +01:00
add LocalFileInfo.Id
This commit is contained in:
@@ -81,9 +81,13 @@ namespace MediaBrowser.Dlna.Didl
|
||||
{
|
||||
element.SetAttribute("parentID", GetClientId(context, contextStubType));
|
||||
}
|
||||
else if (item.Parent != null)
|
||||
else
|
||||
{
|
||||
element.SetAttribute("parentID", GetClientId(item.Parent, null));
|
||||
var parent = item.DisplayParent;
|
||||
if (parent != null)
|
||||
{
|
||||
element.SetAttribute("parentID", GetClientId(parent, null));
|
||||
}
|
||||
}
|
||||
|
||||
//AddBookmarkInfo(item, user, element);
|
||||
@@ -443,7 +447,7 @@ namespace MediaBrowser.Dlna.Didl
|
||||
{
|
||||
container.SetAttribute("id", clientId);
|
||||
|
||||
var parent = context ?? folder.Parent;
|
||||
var parent = context ?? folder.DisplayParent;
|
||||
if (parent == null)
|
||||
{
|
||||
container.SetAttribute("parentID", "0");
|
||||
|
||||
@@ -202,6 +202,17 @@ namespace MediaBrowser.Dlna.Profiles
|
||||
Method = SubtitleDeliveryMethod.External
|
||||
}
|
||||
};
|
||||
|
||||
ResponseProfiles = new[]
|
||||
{
|
||||
new ResponseProfile
|
||||
{
|
||||
Type = DlnaProfileType.Video,
|
||||
Container = "ts",
|
||||
OrgPn = "MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO",
|
||||
MimeType = "video/vnd.dlna.mpeg-tts"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user