public Dictionary <FrameType, string> GetTags(GetTagsOption option = GetTagsOption.RemoveEmptyTags) { if (!_namesList.Contains(_fileHandler.FilePath)) { _namesList.Add(_fileHandler.FilePath); } return(_fileHandler.GetTags(option)); }
public Dictionary <FrameType, string> GetTags(GetTagsOption option) { if (option == GetTagsOption.RemoveEmptyTags) { return(_actualFile.Tags); } else { var emptyDictionary = Frame.EnumKeyDictionary; foreach (var tag in _actualFile.Tags) { emptyDictionary[tag.Key] = tag.Value; } return(emptyDictionary); } }
public Dictionary<FrameType, string> GetTags(GetTagsOption option) { var idTag = _mp3File.GetTag(Id3TagFamily.FileStartTag); var tagsDictionary = new Dictionary<FrameType, string> { {FrameType.Title, idTag.Title}, {FrameType.Album, idTag.Album}, {FrameType.Artist, idTag.Artists}, {FrameType.Track, idTag.Track}, {FrameType.Year, idTag.Year} }; if (option == GetTagsOption.RemoveEmptyTags) return (from tag in tagsDictionary where tag.Value != "" select tag).ToDictionary(k => k.Key, v => v.Value); else return tagsDictionary; }
public Dictionary <FrameType, string> GetTags(GetTagsOption option) { var idTag = _mp3File.GetTag(Id3TagFamily.FileStartTag); var tagsDictionary = new Dictionary <FrameType, string> { { FrameType.Title, idTag.Title }, { FrameType.Album, idTag.Album }, { FrameType.Artist, idTag.Artists }, { FrameType.Track, idTag.Track }, { FrameType.Year, idTag.Year } }; if (option == GetTagsOption.RemoveEmptyTags) { return((from tag in tagsDictionary where tag.Value != "" select tag).ToDictionary(k => k.Key, v => v.Value)); } else { return(tagsDictionary); } }
public Dictionary<FrameType, string> GetTags(GetTagsOption option) { if (option == GetTagsOption.RemoveEmptyTags) return _actualFile.Tags; else { var emptyDictionary = Frame.EnumKeyDictionary; foreach (var tag in _actualFile.Tags) { emptyDictionary[tag.Key] = tag.Value; } return emptyDictionary; } }
public Dictionary<FrameType, string> GetTags(GetTagsOption option = GetTagsOption.RemoveEmptyTags) { if (!_namesList.Contains(_fileHandler.FilePath)) _namesList.Add(_fileHandler.FilePath); return _fileHandler.GetTags(option); }