Kodi Community Forum
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



RE: searching for spotyxbmc2 EASY way to install - StefanK - 2013-03-05

I have been following this thread closely for more than a year now, Just like you hoping for the perfect solution. To answer your questions:

(2013-03-05, 17:09)Raudive Wrote: 1. is there a EASY guide for a noob as i am to install spotyxbmc2 on XBMC frodo using a windows based system?
Easy: no. Noob friendly: yes. If you follow the guidelines of post #530 in this thread, you will eventually get it working. If you are as much of a noob as I it should take you no more than 8 hours - which are well invested!

(2013-03-05, 17:09)Raudive Wrote: 2. will there be a addon for spotify in the near future? (besides spotimc as i dont like the looks and feel of that addon as i explained above)
Probably not in the near future - as we would have heard about it here. But improvements to the original work of akezeke would be welcome, if someone with the adequate skills would put some time into it.


how to make an xbmc.exe file that will install xbmc with spotify integrated... - thebearnecessit - 2013-03-05

This post contains complete instructions for windows users who want to create an install file (xbmc.exe) that will install xbmc12 (with spotify integrated).

even non-geeks can do this. as long as you have a few hours and can follow instructions...plus there's a helpful community right here on this thread so you can post a message on here if you get stuck.

TIP 1) it may well take 8 hours, but don't think you are going to be on the pc, slogging away following instructions for 8 hours. there are only a few main steps and the rest of time you are just waiting for computer processes to finish what they are doing.

TIP 2) post 530 is great but i think (i'm not expert) you need to watch out for or change step 6 to represent the exact files you want to download (ie i'm not sure if the one in post 530 is the one you want).

can anyone clarify if step 6 is still the same or needs updated? ie what do we type in in order to build an xbmc instal file that will install the latest version of xbmc-with-spotify?

here is what step 6 says:

"6. Download the SpotyXBMC source code by typing:
git clone git://github.com/akezeke/spotyxbmc2.git "

isn't there newer builds since then?

TIP 3) when it comes to the first few steps (installing all the software that is needed to build the xbmc.exe) some of the links aren't perfect or the companies have changed their website. just try your best to find the software and if you are not sure, then post on here and tell us what you are not sure of.

TIP 4) another example of tip 3 i think is when you go to the spotify website to get you API key, i think the website has changed so the instructions are out of date so you have to try and find the new location of the API.

what i did was give myself an hour to see how i got on the first time, then the 2nd time with a bit more confidenc ei waited till i had a full day to do it. i think it took me 5 or 6 hours last time: not ideal but we are where we are.

below i have cut and pasted the whole of post 530 for peoples convenience:

This guide outlines the steps I've taken to properly install Spotify on Windows 7 64-bit. This guide comes with the caveat that I am not a software developer, have never written a line of C++ code and have a very limited understanding of object-oriented development. With all of that said, I do have this working for my system, and I hope this guide will work for someone else out there. Software developers may chime in and say that some steps can be removed or are redundant, and that is fine. Like I said, this is what worked for me. This guide is based on the Windows Install readme originally provided by Akezeke on his GitHub website, expanded for the less-technically inclined. Many thanks also to AbandonNow on the XBMC forums, as some of his findings helped me get this working on my system.

Set Up the Build Environment

Prerequisites
Git for Windows [http://code.google.com/p/msysgit/downloads/list ]
Visual C++ Express [http://www.microsoft.com/visualstudio/en...pp-express ]
DirectX SDK [http://www.microsoft.com/download/en/det...en&id=6812 ]
Nullsoft Scriptable Install System (NSIS) [http://sourceforge.net/projects/nsis/fil...%202/2.46/ ]
Spotify Premium Account [http://www.spotify.com/us/get-spotify/premium/ ]

Install guide for Git for Windows can be found at http://help.github.com/win-set-up-git/
If you read through the XBMC build documentation it says NSIS is optional depending on how you intend to install XBMC. I chose to install it so I could create an installer to deploy XBMC with Spotify to multiple Windows machines.

Once the build environment is successfully set up, we can begin!

Acquire the Necessary Software
1. Launch Git for Windows (Git Bash shortcut on desktop)
2. Determine your current directory location by typing pwd
3. Navigate to the root directory by typing cd /c/
4. Create a Build/Dev directory by typing mkdir dev
5. Change to the new directory by typing cd dev
6. Download the SpotyXBMC source code by typing:
git clone git://github.com/akezeke/spotyxbmc2.git
7. While these files are downloading, go get your Spotify AppKey
1. Open a browser and go to https://developer.spotify.com/technologies/libspotify/keys/
2. Log in with your Spotify credentials
3. Click on the c-code link to be redirected to a different page
4. Highlight all of the text [CTRL-A] and copy [CTRL-C]
5. Open a text editor like Notepad or equivalent
6. Paste the contents from the clipboard [CTRL-V]
7. Save the file as appkey.h in the folder c:\dev\spotyxbmc2
8. In the Save As type drop-down menu, select “All Files”
9. Click Save[/INDENT][/INDENT]
8. Once the files have downloaded from Step 6, you can exit out of Git for Windows by typing exit
9. Open Windows Explorer [WinKey-E] and navigate to c:\dev\spotyxbmc2\project\BuildDependencies
10. Double-click the file DownloadBuildDeps.bat
11. Wait for the script to finish and the command window to close
12. Double-click the file DownloadMingwBuildEnv.bat
13. Wait for the script to finish and the command window to close
14. Navigate to c:\dev\spotyxbmc2\project\Win32BuildSetup
15. Double-click the file named buildmingwlibs.bat
16. Wait for the script to finish
17. Now navigate to c:\dev\spotyxbmc2\project\VS2010Express
18. Right-click the file named XBMC for Windows.sln and select Open With >> Visual C++ Express
19. Wait a few minutes until the status in the lower left corner quits updating or reads “Ready”
20. Locate the three drop-down menus in the main toolbar
[INDENT]1. In the first (left) drop down menu, change Debug to Release (DirectX)
2. The second (middle) drop down menu should read Win32
[/INDENT]
21. Press F7 to begin the build process
22. Wait a few minutes for this step to complete
[INDENT]1. Monitor the text in the Output window across the bottom of the app
2. The final line should read something like “Build Successful”
[/INDENT]
23. Exit out of Visual C++ Express
24. Go back to Windows Explorer and you should see a new folder named XBMC in c:\dev\spotyxbmc2\project\VS2010Express
25. Navigate to c:\dev\spotyxbmc2\project\Win32BuildSetup\dependencies
26. Copy all of the .dll files from this location to c:\dev\spotyxbmc2\project\VS2010Express\XBMC\Debug (DirectX)
27. Navigate to c:\dev\spotyxbmc2\project\Win32BuildSetup
28. Double-click the file named BuildSetup.bat
[INDENT]1. This is where actual software developers may have a dissenting opinion, saying that it is not necessary to run this after going through the previous steps. Again, I am including this because these are the “exact” steps I followed to successfully get Spotify working with XBMC.
[/INDENT]
29. Wait for the script to finish
[INDENT]1. You will know it is complete when it asks if you want to view the Debug log file. Type Y or N (your choice!) and then press the elusive Any Key to exit
[/INDENT]
30. You should now have a custom installer named XBMCSetup_[release date]_[build#].exe in c:\dev\spotyxbmc2\project\Win32BuildSetup
31. You can double-click the executable and install XBMC
[INDENT]1. If XBMC is already installed, you can uninstall it but keep your userdata folder
[/INDENT]

Configuring XBMC with Spotify
1. Launch XBMC [Start > All Programs > XBMC > XBMC]
2. Navigate to System > Add-Ons > Enabled Add-Ons > Music Add-Ons
3. Select SpotyXBMC
4. Select Configure
5. Select the radio button next to Enable
6. Enter your Spotify username
7. Enter your Spotify password
[INDENT]1. IMPORTANT! Several users have reported issues if their Spotify password starts with an upper-case letter. I got this working after changing my password to one that begins with a lower-case letter.
[/INDENT]
8. Select OK
9. Press ESC a few times to return to the Home window
10. Exit XBMC
11. Launch XBMC [Start > All Programs > XBMC > XBMC]
12. Select Music
[INDENT]1. If XBMC was installed previously and you had music in your library, you should now see your Spotify playlists in the Playlist section, as well as being able to use the Search function to search for artists/songs/albums on Spotify
2. If you did not have XBMC installed prior to this, you will need to add some music to XBMC before you can enable the library
[/INDENT]
[INDENT][INDENT]1. From the Home window go to Music > Add Source
2. You can either point XBMC to your existing music library or simply copy a few MP3 files to your computer and then point XBMC to those files in this step
3. If you choose to do this, it may be helpful to ensure your files are structured as <Artist Name>/<Album Name>/<Track ## - Track Name>
4. Once you add a few tracks/many tracks, highlight an artist, press C on the keyboard and select Scan Item to Library
5. Wait a few minutes for this process to complete
6. Press the left arrow on the keyboard
7. Scroll down and ensure the radio button next to Library is selected/active
8. Press the right arrow to return to the Music section
9. Press ESC to return to the Home window
10. Select Music again and with any luck you should now see your Spotify playlists in the Playlist section, as well as being able to use the Search function to search for artists/songs/albums on Spotify
[/INDENT][/INDENT]

Of course, feedback is welcome! Hopefully this guide will prove useful to someone else out there. If it is helpful, perhaps a Moderator would consider moving it to the HOW-TO section of the forums.


RE: searching for spotyxbmc2 EASY way to install - PolarbearNO - 2013-03-05

(2013-03-05, 17:09)Raudive Wrote: My questions are:
1. is there a EASY guide for a noob as i am to install spotyxbmc2 on XBMC frodo using a windows based system?

There are some prebuilt .exe-files for Windows around. I'm using the one mentioned here, however that one is for Eden. It works without any bugs, though.

There is also one for Frodo, but it appears to have bugs. It is mentioned here

Best regards!


RE: [WIP] XBMC + Spotify = True - Nogler - 2013-03-05

Can someone please provide me a appkey.h file whit wrong key? I need it because i dosn't want spotify but need the build in features for 3D. It seems that whitout this file i can't compile.

Thanks


RE: how to make an xbmc.exe file that will install xbmc with spotify integrated... - StefanK - 2013-03-06

(2013-03-05, 19:50)thebearnecessit Wrote: you need to watch out for or change step 6 to represent the exact files you want to download
-can anyone clarify if step 6 is still the same or needs updated?

That's right. However the akezeke repository was merged with neoflex' update to Frodo final version 12.0 about a month ago - so step 6 is still correct.


RE: how to make an xbmc.exe file that will install xbmc with spotify integrated... - thebearnecessit - 2013-03-06

(2013-03-06, 10:07)StefanK Wrote:
(2013-03-05, 19:50)thebearnecessit Wrote: you need to watch out for or change step 6 to represent the exact files you want to download
-can anyone clarify if step 6 is still the same or needs updated?

That's right. However the akezeke repository was merged with neoflex' update to version 12.0 about a month ago - so step 6 is still correct.

great stuff, do you know if that will install the final version of version 12 or a release candidate version?


[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's officia - Mati24 - 2013-03-07

(2013-03-05, 19:50)thebearnecessit Wrote: Of course, feedback is welcome! Hopefully this guide will prove useful to someone else out there. If it is helpful, perhaps a Moderator would consider moving it to the HOW-TO section of the forums.

Thank a lot ! i succeed !


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's officia - thebearnecessit - 2013-03-07

(2013-03-07, 14:00)Mati24 Wrote:
(2013-03-05, 19:50)thebearnecessit Wrote: Of course, feedback is welcome! Hopefully this guide will prove useful to someone else out there. If it is helpful, perhaps a Moderator would consider moving it to the HOW-TO section of the forums.

Thank a lot ! i succeed !

great news, well done, but it wasn't my guide, i just copied and pasted it into my post.

so can you tell me instep 6 did you type it in exactly as the instructions say? and can you look in system info and tell me what version of xbmc you have installed?


[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's officia - Mati24 - 2013-03-07

It´s frodo and I respect the procedure


spotify - thebearnecessit - 2013-03-07

i am using frodo RC3 and i'm trying to figure out if a frodo final version is available. do ou know if its frodo final you have or a frodo RC3?

thanks.


[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's officia - Mati24 - 2013-03-07

It says : XBMC 12.0 Git:unknown (Compiled: Mar 7 2013)


spotify - thebearnecessit - 2013-03-07

cool thanks, seems to be the full xbmc version 12.

cant seem to get anyone to tell me for sure though.

Thanks again.


XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - StefanK - 2013-03-07

I Can conform that it is the final version of Frodo.


spotify - thebearnecessit - 2013-03-07

thanks dude. if i compile/create and xbmc.exe using the instructions above and just install it over my existing install will i keep all my library and home page settings etc?


RE: XBMC + Spotify = True - thebearnecessit - 2013-03-09

does anyone know if its possible to get spotify integrated into an xbmc app (for use on android)?