add LocalFileInfo.Id

This commit is contained in:
Luke Pulverenti
2014-10-24 00:54:35 -04:00
parent 5a5b48feff
commit c8a735bcb1
84 changed files with 659 additions and 494 deletions

View File

@@ -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");

View File

@@ -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"
}
};
}
}
}