Posts

Showing posts from August, 2014

Arrange music for iTunes, build albums automatically for music files that miss album name, artist name etc.

I did come across a problem with my Iphone and other Apple devices. Songs were not grouping properly in albums, and as all know apple group songs by all other tags nut the folder you keep them in. I have large music library, and I wanted to change album name to name of folder in which the songs were contained. Below is small Java program that will help you achieving that. Just change the directory paths and enjoy. # Main Class package com.gvt; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.util.ArrayList; import java.util. List ; import javax.swing.filechooser.FileNameExtensionFilter; import org.jaudiotagger.audio.AudioFile; import org.jaudiotagger.audio.AudioFileIO; import org.jaudiotagger.audio.exceptions.CannotReadException; import org.jaudiotagger.audio.exceptions.CannotWriteException; import org.jaudiotagger.audio.exceptions.InvalidAudioFrameException; import org.jaudiotagger.audio.exceptions.ReadOnlyFileExcep