aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna/PlayTo/Extensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Dlna/PlayTo/Extensions.cs')
-rw-r--r--MediaBrowser.Dlna/PlayTo/Extensions.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Dlna/PlayTo/Extensions.cs b/MediaBrowser.Dlna/PlayTo/Extensions.cs
index afa7eee72e..05003a65b9 100644
--- a/MediaBrowser.Dlna/PlayTo/Extensions.cs
+++ b/MediaBrowser.Dlna/PlayTo/Extensions.cs
@@ -40,6 +40,13 @@ namespace MediaBrowser.Dlna.PlayTo
return node == null ? null : node.Value;
}
+ public static string GetAttributeValue(this XElement container, XName name)
+ {
+ var node = container.Attribute(name);
+
+ return node == null ? null : node.Value;
+ }
+
public static string GetDescendantValue(this XElement container, XName name)
{
var node = container.Descendants(name)