[RELEASE] Spotimc: Another Spotify music addon

  Thread Rating:
  • 31 Vote(s) - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
darkmaffia Offline
Junior Member
Posts: 26
Joined: Jan 2010
Reputation: 0
Post: #931
does this add-on support ''spotify connect'' so I could use spotify app on my tablet?
(This post was last modified: 2015-02-21 17:22 by darkmaffia.)
find quote
LegeDoos Offline
Junior Member
Posts: 5
Joined: Mar 2014
Reputation: 0
Post: #932
Since a week my Openelec installation crashes as soon as I press play in SpotiMC. Reinstalled the plugin, problem stays. Anyone else experiencing this? Want to know if this is a SpotiMc/Spotify problem or that my raspberry pi has an problem....

Rob
find quote
GaryCN Offline
Junior Member
Posts: 2
Joined: Feb 2013
Reputation: 0
Location: Livonia Michigan USA
Post: #933
Installed and working fine on a Raspberry Pi 2 Model B, running Kodi Helix, iPhone XBMC remote app also appears OK
[Image: SpotiMC.jpg]
(This post was last modified: 2015-03-20 07:34 by GaryCN.)
find quote
pettergulbra Offline
Fan
Posts: 570
Joined: Jun 2009
Reputation: 1
Post: #934
Is there a way to have two different users on this addon?

HP Chrome Box, with Kodibuntu
TV: Samsung UE55F8005STXXE - Receiver: Yamaha RX-V767.

To everyone that helps me and other, BIG THANKS from ALL of US, to ALL of YOU!!
find quote
pettergulbra Offline
Fan
Posts: 570
Joined: Jun 2009
Reputation: 1
Post: #935
I have now tried to change the name of the Spotimc addon, so I can have two diffrent running on the system.
I can get two installed, but it won`t ask for two accounts, it will just use the same one.

It will install as two separate addons, in both addon folder and the addon data folder.

The problem seems to be that it can`t see that it should be two different logins.
What else do I have to recode?

I have edited these files, addon.xml, default.py and spotimc.py like this:
Addon.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<addon id="script.audio.spotimc.extra" version="1.0-beta5" name="Spotimc.extra" provider-name="Mikel Azkolain">
    <requires>
        <import addon="xbmc.python" version="2.1.0"/>
    </requires>
    <extension point="xbmc.python.script" library="default.py">
        <provides>audio</provides>
    </extension>
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
        <summary>Spotimc gives you access to the Spotify music service.</summary>
        <description>Spotimc lets you search for music, browse your playlists and play your favourite tunes right from XBMC.[CR][CR]This product uses SPOTIFY(R) CORE but is not endorsed, certified or otherwise approved in any way by Spotify. Spotify is the registered trade mark of the Spotify Group.[CR][CR]Special thanks to Seeleck for the logo and skin improvements.[CR][CR]Special thanks also for the CherryPy project, the DejaVu fonts project and the GNOME project (high contrast icons theme).</description>
        <disclaimer>It requires a Spotify premium account.</disclaimer>
    </extension>
</addon>

default.py
Code:
'''
Copyright 2011 Mikel Azkolain

This file is part of Spotimc.

Spotimc is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Spotimc is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Spotimc.  If not, see <http://www.gnu.org/licenses/>.
'''


import xbmc
import xbmcaddon
import os.path
import sys

#Set global addon information first
__addon_id__ = 'script.audio.spotimc.extra'
addon_cfg = xbmcaddon.Addon(__addon_id__)
__addon_path__ = addon_cfg.getAddonInfo('path')
__addon_version__ = addon_cfg.getAddonInfo('version')

#Make spotimcgui available
sys.path.insert(0, os.path.join(__addon_path__, "resources/libs"))
from spotimcgui.utils import environment


if environment.has_background_support():

    #Some specific imports for this condition
    from spotimcgui.settings import InfoValueManager
    from spotimcgui.utils.gui import show_busy_dialog

    manager = InfoValueManager()
    spotimc_window_id = manager.get_infolabel('spotimc_window_id')

    if spotimc_window_id != '':
        xbmc.executebuiltin('ActivateWindow(%s)' % spotimc_window_id)
    else:
        spotimc_path = os.path.join(__addon_path__, 'spotimc.py')
        show_busy_dialog()
        xbmc.executebuiltin('RunScript("%s")' % spotimc_path)

else:
    #Prepare the environment...
    from spotimcgui.utils.environment import set_library_paths
    set_library_paths()

    from spotimcgui.main import main
    main()

spotimc.py
Code:
'''
Copyright 2011 Mikel Azkolain

This file is part of Spotimc.

Spotimc is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Spotimc is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Spotimc.  If not, see <http://www.gnu.org/licenses/>.
'''


import os.path
import xbmcaddon
import sys


#Set global addon information first
__addon_id__ = 'script.audio.spotimc.extra'
addon_cfg = xbmcaddon.Addon(__addon_id__)
__addon_path__ = addon_cfg.getAddonInfo('path')
__addon_version__ = addon_cfg.getAddonInfo('version')

#Make spotimcgui available
sys.path.insert(0, os.path.join(__addon_path__, "resources/libs"))

#Prepare the environment...
from spotimcgui.utils.environment import set_library_paths
set_library_paths()

from spotimcgui.main import main
main()

As you can see, I have added "extra" to the addon id. To make it work twice, but still no luck.
I have also changed the name of the main folder inside the zip to match what I have done in the files.

Hope there are some kind people that can help me. :-)

HP Chrome Box, with Kodibuntu
TV: Samsung UE55F8005STXXE - Receiver: Yamaha RX-V767.

To everyone that helps me and other, BIG THANKS from ALL of US, to ALL of YOU!!
(This post was last modified: 2015-03-27 14:26 by pettergulbra.)
find quote
Post Reply