예제 #1
0
        public Dictionary <FrameType, string> GetTags(GetTagsOption option = GetTagsOption.RemoveEmptyTags)
        {
            if (!_namesList.Contains(_fileHandler.FilePath))
            {
                _namesList.Add(_fileHandler.FilePath);
            }

            return(_fileHandler.GetTags(option));
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
        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;
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
 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;
     }
 }
예제 #6
0
        public Dictionary<FrameType, string> GetTags(GetTagsOption option = GetTagsOption.RemoveEmptyTags)
        {
            if (!_namesList.Contains(_fileHandler.FilePath))
                _namesList.Add(_fileHandler.FilePath);

            return _fileHandler.GetTags(option);
        }