A Java tool to convert songs downloaded using Gaana App to MP3 files.
Gaana is a music streaming free service. There are also mobile Apps that allow users to listen to music for free in their mobiles.
The mobile App features unlimited download of songs for a small amount of fee. The catch here is that the downloaded songs can be listed through the Gaana App only.
Using this utility, these downloaded songs can be converted to audio files with proper tags Also there is an option to organise the songs into folders named under their Album names
java -jar GaanaExtractor-<version>.jar [srcDir] [shldOrganise]
Parameter | Required | Type | Description | Default Value |
---|---|---|---|---|
srcDir | Optional | String | The path of the folder having the downloaded songs | The folder where jar file is present |
shldOrganise | Optional | Boolean | true : Organise songs into folders named under their Album names false : No Organisation |
True |
-
Download the JAR file from the binaries folder.
-
Retrieve the downloaded songs from your mobile and copy to a specific folder. Lets assume the folder structure to be C:\Gaana\Songs\ [Ways to do this coming soon..]
-
Place the GaanaExtractor-.jar in the parent folder C:\Gaana\
-
Open a command prompt and navigate to C:\Gaana\
-
Run the following command (Direction of slash can be anything)
java -jar GaanaExtractor-<version>.jar "C:/Gaana/Songs/" true
-
You can find the converted files in the path C:\Gaana\Songs\converted
-
Enjoy the songs!
Note1 : Internet connected is required for this utility to get the song details from the Gaana Server.
Note2 : If there is any error during conversion, please share the log file with me. The log file can be found in the same directory as that of the jar file. It will be under the name GaanaExtractor.log. If there was no error during conversion, the log file can be deleted.
v2.0-BETA: Nearly every song should get converted now
- Fixed issue which was causing conversion to fail for lot of songs
- Tidy up the console log. It's now more crisp and clear
- Now the tool creates a detailed log file in the location from which the jar is run.
- Made Parameters optional with default values
- Now the source directory parameter accepts both windows and unix file path string
v1.2:
- Now mp3 and mp4(m4a/aac) formats are supported.
- Will skip the songs for which there are no details in DB and prompt the skipped the files in the end.
- Will skip the files for which errors happened and prompt the skipped the files in the end.
- Added an option for selecting whether files need to be organised based on Album names
v1.1:
- Fixed the inability to handle more than 10 songs in a single run.
v1.0:
- Initial Release