Custom Button Spotify - Setup
The purpose of this document is to describe how to setup a working custom button pointing to Spotify application.
- Preparation of the environment
A/ Open your MusicMaster database and note down the field number values of the following two fields:
- YYY: field containing the Artist
- ZZZ: field containing the Title
Below please find a series of screenshots that will help you in the process.
Note: the field names and numbers may vary depending on the database used. Here they are called respectively:
- Artist (field number: 102)
- Title (field number: 103)
B/ Do you have the Spotify logo?
If not, you can find it below AND as an attachment to this document.
Once you have saved the above image as a .jpg file on your computer (or after downloading the attachment), you have to cut or copy it into your MusicMaster installation folder (the same which contains the file MusicMaster.exe).
C/ Do you have already downloaded the Spotify app? If not, you can download it for any available platform. Note that this link will adapt to your language depending from where you are using it.
D/ Do you have a valid Spotify account? If so, connect to the app and login with your credentials. This is not a mandatory step, but it will save you a lot of time logging in after you call the application from MusicMaster.
Done? Let's move on to the next step then.
- MusicMaster.ini file
This file is usually located in the MusicMaster installation directory.
Two possible cases here:
A/ MusicMaster.ini not present. In this case a new empty .ini file has to be created inside MusicMaster installation folder (remember? You already saved your Radio Monitor logo in that folder!). Then you have to rename the file as "MusicMaster.ini".
Alternatively, you can download the .ini file attached to this document and modify it.
You have now to open it with a text editor and to copy-paste the following text into it:
;;;;;START_FILE;;;;;;
[UserButton1]
;Spotify
Image=Spotify.jpg
ToolTip=Spotify - Search Song and Artist
URL=spotify:search:%FLD:103%+%20+%FLD:102%
;;;;;END_FILE;;;;;;
Some explanation for the fields marked in red.
- "%FLD:102%" Do you remember the screenshot which shows the artist and title field number in MusicMaster? If so, you may remember that 103 and 102 where the resulting values in our sample database. Of course, things can be different in your database. In this case you will have to replace the numbers in red with the ones noted down from your database..
B/ MusicMaster.ini already present. In this case you should open it with any text editor and add the following section:
;;;;;START_FILE;;;;;;
[UserButtonX]
;Spotify
Image=Spotify.jpg
ToolTip=Spotify - Search Song and Artist
URL=spotify:search:%FLD:103%+%20+%FLD:102%
;;;;;END_FILE;;;;;;
Some explanation for the fields marked in red.
- The "X" in the [UserButton] element definiton line has to replaced with an integer number. If you didn't have any UserButton in your .ini file, this number has to be 1; if you add already set up other customized buttons in your .ini file, you should insert a value equal to the highest one present in the .ini file + 1. Example: you already had two user buttons? X in this case should be equal to 3. Note: With MusicMaster 5.0 SR 15 you can add up to 5 User Buttons, so 5 is the maximum amount.
- "%FLD:102%" Do you remember the screenshot which shows the artist and title field number in MusicMaster? If so, you may remember that 103 and 102 where the resulting values in our sample database. Of course, things can be different in your database. In this case you will have to replace the numbers in red with the ones noted down from your database..
- Let's give it a try!
Please close all the instances of MusicMaster and restart it. Open your database and you should now have a button identical to the one below:
If so, the only thing left, is to try it out. Just selecting a song from your library and clicking on the newly created "Spotify" button, the app will automatically open showing you the results of your research, exactly like in the picture below (note: my Spotify is in German but of course language depends on the Spotify installation language).
- Done?
If you got something like the above picture, everything worked fine and you can play with Spotify as you like. We assume you are already familiar with the tool, and explaining how it works is outside of the scope of this tutorial. However, you can find more information about this product on the website www.spotify.com.
If you didn't get the expected result, do not hesitate to contact us at the following e-mail address: support@onair.de. We will be happy to help you setting up your environment!
Comments