1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-01-14 22:18:43 +00:00
This commit is contained in:
glucaci 2016-12-21 11:40:50 +01:00
parent 982a013839
commit 5ea5d24b7a
2 changed files with 4 additions and 4 deletions

View File

@ -23,6 +23,6 @@ namespace LibMpc.Types
int Disc { get; }
int Pos { get; }
int Id { get; }
IDictionary<string, string> UnknownTags { get; }
IDictionary<string, string> UnknownMetadata { get; }
}
}

View File

@ -22,7 +22,7 @@ namespace LibMpc.Types
private const string TagPos = "Pos";
private const string TagId = "Id";
private readonly IDictionary<string, string> _unknownTags = new Dictionary<string, string>();
private readonly IDictionary<string, string> _unknownMetadata = new Dictionary<string, string>();
internal MpdFile(string file)
{
@ -46,7 +46,7 @@ namespace LibMpc.Types
public int Disc { get; private set; } = -1;
public int Pos { get; private set; } = -1;
public int Id { get; private set; } = -1;
public IDictionary<string, string> UnknownTags => _unknownTags;
public IDictionary<string, string> UnknownMetadata => _unknownMetadata;
internal void AddTag(string tag, string value)
{
@ -95,7 +95,7 @@ namespace LibMpc.Types
Id = int.Parse(value);
break;
default:
_unknownTags.Add(tag, value);
_unknownMetadata.Add(tag, value);
break;
}
}