src/BandcampDownloader/Helpers/TagHelper.cs
/// <summary>
/// Returns the file updated with the specified album title based on the specified TagEditAction.
/// </summary>
/// <param name="file">The file to update.</param>
/// <param name="albumTitle">The value used if TagEditAction = Modify.</param>
/// <param name="editAction">The TagEditAction specifying how the tag should be updated.</param>
Returns the file updated with the specified album title based on the specified TagEditAction.
Returns the file updated with the specified album title based on the specified TagEditAction .
public static TagLib.File UpdateAlbumTitle(TagLib.File file, string albumTitle, TagEditAction editAction) {
            switch (editAction) {
                case TagEditAction.Empty:
                    file.Tag.Album = "";
                    break;
                case TagEditAction.Modify:
                    file.Tag.Album = albumTitle;
                    break;
                case TagEditAction.DoNotModify:
                    break;
                default:
                    break;
            }
            return file;
        }
public static TagLib . File UpdateAlbumTitle ( TagLib . File file , string albumTitle , TagEditAction editAction ) { switch ( editAction ) { case TagEditAction . Empty : file . Tag . Album = " " ; break ; case TagEditAction . Modify : file . Tag . Album = albumTitle ; break ; case TagEditAction . DoNotModify : break ; default : break ; } return file ; }
Returns the file updated with the specified album title based on the specified TagEditAction.
Returns the file updated with the specified album title based on the specified TagEditAction .
file
TagLib.File
The file to update.
The file to update .
albumTitle
string
The value used if TagEditAction = Modify.
The value used if TagEditAction = Modify .
editAction
TagEditAction
The TagEditAction specifying how the tag should be updated.
The TagEditAction specifying how the tag should be updated .