2015-02-21, 17:11
does this add-on support ''spotify connect'' so I could use spotify app on my tablet?
<?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>
'''
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()
'''
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()
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/
(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
Quote:OSError
[Errno 1] Operation not permitted:
"/storage/emulated/o/Android/data/org.xbmc.kodi..."
(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/