[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: 29
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: 587
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: 587
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
peterwalker78 Offline
Junior Member
Posts: 2
Joined: Mar 2015
Reputation: 0
Post: #936
Hi everyone. I love the Spotimc addon. Unfortunately something has gone wrong with it on my osmc raspi1 set up. If anyone can help me figure out how to fix it I'd be super happy. kodi.log detail below:

Code:
19:02:56 T:2780820512  NOTICE: -->Python Interpreter Initialized<--
19:02:57 T:2797597728  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:58 T:2797597728  NOTICE: -->Python Interpreter Initialized<--
19:02:58 T:2797597728 WARNING: CPythonInvoker(12): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
19:03:05 T:2797597728   ERROR: Traceback (most recent call last):
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/spotimcgui/main.py", line 497, in main
19:03:05 T:2797597728   ERROR:     fm.install_file(xml_path, font_dir)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 191, in install_file
19:03:05 T:2797597728   ERROR:     self._install_file(doc_cache, user_file, skin_file, font_path)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 161, in _install_file
19:03:05 T:2797597728   ERROR:     self._get_font_attr(item, "linespacing")
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 100, in _install_font_def
19:03:05 T:2797597728   ERROR:     font_doc = self.__doc_cache.read(skin_file)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/__init__.py", line 341, in read
19:03:05 T:2797597728   ERROR:     self.__cached_docs[file] = ET.parse(file)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
19:03:05 T:2797597728   ERROR:     tree.parse(source, parser)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
19:03:05 T:2797597728   ERROR:     parser.feed(data)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
19:03:05 T:2797597728   ERROR:     self._raiseerror(v)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
19:03:05 T:2797597728   ERROR:     raise err
19:03:05 T:2797597728   ERROR: ParseError: not well-formed (invalid token): line 150, column 1
19:03:08 T:2797597728  NOTICE: Thread LanguageInvoker start, auto delete: false
19:03:08 T:2797597728  NOTICE: Previous line repeats 1 times.
19:03:08 T:2797597728  NOTICE: -->Python Interpreter Initialized<--
19:03:10 T:2814374944  NOTICE: Previous line repeats 1 times.
19:03:10 T:2814374944  NOTICE: Thread JobWorker start, auto delete: true
19:03:10 T:2814374944 WARNING: CreateLoader - unsupported protocol(home/image) in home/image://%2fhome%2fosmc%2f.kodi%2faddons%2fscript.audio.spotimc%2ficon.png/
find quote
nicinthecloud Offline
Junior Member
Posts: 1
Joined: Mar 2015
Reputation: 0
Post: #937
(2015-03-20 07:22)GaryCN Wrote:  Installed and working fine on a Raspberry Pi 2 Model B, running Kodi Helix, iPhone XBMC remote app also appears OK
[Image: SpotiMC.jpg]

Hi,

Looks Great
Could you please share how you installed it.
It does not seem to be available on SuperRepo for helix.
Did you download the zip directly? If so where from.

Cheers,
Nic
find quote
Fofer Offline
Member
Posts: 75
Joined: Oct 2003
Reputation: 0
Post: #938
Trying to install this on my Amazon FireTV's Kodi 14.2 install. This is the error I get on launch:

Quote:OSError
[Errno 1] Operation not permitted:
"/storage/emulated/o/Android/data/org.xbmc.kodi..."

I've installed many other add-ons that work fine. I'm sure this error has something to do with how the FireTV handles its storage. Has anyone else had success with this? Is there a workaround/fix? I'd love to get Spotimc running on my FireTV, it looks great!
find quote
alton987 Offline
Junior Member
Posts: 1
Joined: Feb 2013
Reputation: 0
Post: #939
Did you ever get this working on the firetv? I have the same issue.
find quote
Fofer Offline
Member
Posts: 75
Joined: Oct 2003
Reputation: 0
Post: #940
Nope. Sad
find quote
peterwalker78 Offline
Junior Member
Posts: 2
Joined: Mar 2015
Reputation: 0
Post: #941
(2015-03-29 21:15)peterwalker78 Wrote:  Hi everyone. I love the Spotimc addon. Unfortunately something has gone wrong with it on my osmc raspi1 set up. If anyone can help me figure out how to fix it I'd be super happy. kodi.log detail below:

Code:
19:02:56 T:2780820512  NOTICE: -->Python Interpreter Initialized<--
19:02:57 T:2797597728  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:58 T:2797597728  NOTICE: -->Python Interpreter Initialized<--
19:02:58 T:2797597728 WARNING: CPythonInvoker(12): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
19:03:05 T:2797597728   ERROR: Traceback (most recent call last):
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/spotimcgui/main.py", line 497, in main
19:03:05 T:2797597728   ERROR:     fm.install_file(xml_path, font_dir)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 191, in install_file
19:03:05 T:2797597728   ERROR:     self._install_file(doc_cache, user_file, skin_file, font_path)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 161, in _install_file
19:03:05 T:2797597728   ERROR:     self._get_font_attr(item, "linespacing")
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/fonts.py", line 100, in _install_font_def
19:03:05 T:2797597728   ERROR:     font_doc = self.__doc_cache.read(skin_file)
19:03:05 T:2797597728   ERROR:   File "/home/osmc/.kodi/addons/script.audio.spotimc/resources/libs/xbmc-skinutils/src/skinutils/__init__.py", line 341, in read
19:03:05 T:2797597728   ERROR:     self.__cached_docs[file] = ET.parse(file)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
19:03:05 T:2797597728   ERROR:     tree.parse(source, parser)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
19:03:05 T:2797597728   ERROR:     parser.feed(data)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
19:03:05 T:2797597728   ERROR:     self._raiseerror(v)
19:03:05 T:2797597728   ERROR:   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
19:03:05 T:2797597728   ERROR:     raise err
19:03:05 T:2797597728   ERROR: ParseError: not well-formed (invalid token): line 150, column 1
19:03:08 T:2797597728  NOTICE: Thread LanguageInvoker start, auto delete: false
19:03:08 T:2797597728  NOTICE: Previous line repeats 1 times.
19:03:08 T:2797597728  NOTICE: -->Python Interpreter Initialized<--
19:03:10 T:2814374944  NOTICE: Previous line repeats 1 times.
19:03:10 T:2814374944  NOTICE: Thread JobWorker start, auto delete: true
19:03:10 T:2814374944 WARNING: CreateLoader - unsupported protocol(home/image) in home/image://%2fhome%2fosmc%2f.kodi%2faddons%2fscript.audio.spotimc%2ficon.png/

Anyone know of a fix to this yet?
(This post was last modified: 2015-04-19 10:01 by peterwalker78.)
find quote
Post Reply