/// <summary> /// Removes a set of tag types from the current instance. /// </summary> /// <param name="types"> /// A bitwise combined <see cref="TagLib.TagTypes" /> value /// containing tag types to be removed from the file. /// </param> /// <remarks> /// In order to remove all tags from a file, pass <see /// cref="TagTypes.AllTags" /> as <paramref name="types" />. /// </remarks> /// <remarks> /// Currently this does not work as there is not enough /// information about the file format /// </remarks> public override void RemoveTags(TagLib.TagTypes types) { }
/// <summary> /// Gets a tag of a specified type from the current instance, /// optionally creating a new tag if possible. /// </summary> /// <param name="type"> /// A <see cref="TagLib.TagTypes" /> value indicating the /// type of tag to read. /// </param> /// <param name="create"> /// A <see cref="bool" /> value specifying whether or not to /// try and create the tag if one is not found. /// </param> /// <returns> /// A <see cref="Tag" /> object containing the tag that was /// found in or added to the current instance. If no /// matching tag was found and none was created, <see /// langword="null" /> is returned. /// </returns> public override TagLib.Tag GetTag(TagLib.TagTypes type, bool create) { return(null); }
private void ReadFile(TagLib.File file) { if (file == null) return; _fileLength = file.Length; _invariantEndPosition = file.InvariantEndPosition; _invariantStartPosition = file.InvariantStartPosition; _length = file.Length; MimeType = file.MimeType; Name = file.Name; _possiblyCorrupt = file.PossiblyCorrupt; _tagTypes = file.TagTypes; _tagTypesOnDisk = file.TagTypesOnDisk; ReadProperties(file.Properties); ReadTag(file.Tag); }
public void RemoveTag(FileInfo fi, TagLib.TagTypes type) { TagLib.File tag_file = TagLib.File.Create(fi.FullName); tag_file.RemoveTags(type); tag_file.Save(); }