Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/blame/commit/c611d2f7bf867965253c3d661e9928fd676a37d4/MediaBrowser.Dlna/PlayTo/ServiceAction.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
|
|
|
{
|
|
|
|
|
public class ServiceAction
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<Argument> ArgumentList { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static ServiceAction FromXml(XElement container)
|
|
|
|
|
{
|
|
|
|
|
var argumentList = new List<Argument>();
|
|
|
|
|
|
|
|
|
|
foreach (var arg in container.Descendants(uPnpNamespaces.svc + "argument"))
|
|
|
|
|
{
|
|
|
|
|
argumentList.Add(Argument.FromXml(arg));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new ServiceAction
|
|
|
|
|
{
|
|
|
|
|
Name = container.GetValue(uPnpNamespaces.svc + "name"),
|
|
|
|
|
|
|
|
|
|
ArgumentList = argumentList
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|