Kodi Community Forum
[RELEASE] Spotimc: Another Spotify music addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Spotimc: Another Spotify music addon (/showthread.php?tid=125147)



RE: [RELEASE] Spotimc: Another Spotify music addon - ShadowJRJ - 2012-12-09

What have i done wrong??

Downloaded the zip
Importeded it in XBMC
addede it in music plugins

Where am i supposed to find it ( it not in any of the music/movie/pictures/program/etc folders)


RE: [RELEASE] Spotimc: Another Spotify music addon - EvilUnicorn - 2012-12-11

Brilliant stuff on beta 3! Spotimc is running fine now.
I do have some suggestions which might be mentioned, but 44 pages is bit much to scroll through Smile

Here they are (no offence, love spotimc, but think this will make it soo much better)

1. UI for me is big. Tabs and 'icons' take so much space on my tv. I would be happy to set those to 50% if possible. Could there be some configuration setting?
2. Spotimc can use visualizations but would it be possible to integrate the add-on LastFM- Slideshow? Would be great to see pictures of artists while playing their songs
3. Once selected a lyrics provider I can't seem to change it. Nowhere in the settings I can find anything to do this.....
4. I would love to see an icon on the 'Now Playing' page to go back to the active playlist. You now have 'Browse Artist' and Browse Album', a 'Back to Playlist' would be master. Hard to find the actual playlist you're on from there. A feature that the Spotify UI could use as well. I always get lost.....
5. A LastFM tab in the main UI (perhaps enabled by some configuration setting for those who use it). LastFM integrates nicely with Spotify, would be cool to see that in Spotimc aswell!
5. We miss some things we do have on regular spotify but I guess you are working on those
6. Is Spotimc scrobbing to LastFM? I can't find a setting about that

Anyways hope my suggestions make sence and love your work! Best Spotify add-on by far!

Cheers



RE: [RELEASE] Spotimc: Another Spotify music addon - Frank-NL - 2012-12-11

6. Set scrobbling in XBMC Settings > Music. It is using the internal player so if you set Submit to last.fm there, Spotimc will scrobble.


RE: [RELEASE] Spotimc: Another Spotify music addon - dallasnights - 2012-12-11

i am confused, in the last post you said on your TV does it now work on ATV2 and if so how

Thanks all


RE: [RELEASE] Spotimc: Another Spotify music addon - EvilUnicorn - 2012-12-11

(2012-12-11, 14:08)Frank-NL Wrote: 6. Set scrobbling in XBMC Settings > Music. It is using the internal player so if you set Submit to last.fm there, Spotimc will scrobble.

Thanks! Makes sence but you just have to know!



RE: [RELEASE] Spotimc: Another Spotify music addon - xburchartz - 2012-12-12

I installed the addon and everythings seems to be ok. I can browse through my playlists and select a song. But then... nothing happens. I don't hear anything.
I can imagine you need a log file in order to be able to say anything about it. What should I provide?

Thanks


RE: [RELEASE] Spotimc: Another Spotify music addon - chippen - 2012-12-12

I am running XBMC Frodo on ubuntu 12.04 64bit. (I might add that I run XBMC in bumblebee (optirun) even though i don't think that influences this problem)
I have tried to debug in Frodo. It seems like it seg faults when it tries to return from __call__ in weakmethod.py (PySpotifyCTypes.egg/utils).

It is the second time it reaches the return, when it has tried to do offlinelogin (and failed in my case)
Code:
def __call__(self, *args, **kwargs):
        method = getattr(self.__obj(), self.__func().__name__)
        return method(*args, **kwargs)


Extract from xbmc.log
Code:
10:15:45 T:140507484354432   ERROR: ClearBlock: Trying to clear non existent block /home/chippen/.xbmc/addons/script.audio.spotimc
10:18:16 T:140506944182016   ERROR: Previous line repeats 2 times.
10:18:16 T:140506944182016  NOTICE: libspotify log: 09:17:27.609 I [offline_authorizer.cpp:297] Unable to login offline: no such user

Full log:
http://pastebin.com/J38DBuQ1

Crash log:
http://pastebin.com/Qxe4SqFP




RE: [RELEASE] Spotimc: Another Spotify music addon - Kib - 2012-12-12

(2012-12-09, 16:45)Frank-NL Wrote: On OpenELEC 3.0 beta 4 (including XBMC 12.0b3) Spotimc crashes XBMC with the following in the log:

15:40:40 T:2582657856 NOTICE: Previous line repeats 1 times.
15:40:40 T:2582657856 NOTICE: Thread XBPyThread start, auto delete: false
15:40:40 T:2582657856 NOTICE: -->Python Interpreter Initialized<--
15:40:40 T:2582657856 NOTICE: /storage/.xbmc/addons/skin.aeon.nox/write_test.txt
15:40:40 T:2582657856 ERROR: /storage/.xbmc/addons/script.audio.spotimc/resources/libs/XbmcSkinUtils.egg/skinutils/fonts.py:138: FutureWarnin
g: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
15:40:40 T:2582657856 NOTICE: /storage/.xbmc/addons/skin.aeon.nox/write_test.txt
15:40:40 T:2582657856 NOTICE: install include: /storage/.xbmc/addons/script.audio.spotimc/resources/skins/DefaultSkin/720p/includes.xml
15:40:41 T:3016276480 ERROR: ClearBlock: Trying to clear non existent block /storage/.xbmc/addons/script.audio.spotimc
15:40:41 T:3016276480 ERROR: Previous line repeats 1 times.
15:40:41 T:3016276480 WARNING: Cleanup: Having to cleanup texture dialogs/context_nofocus.png
15:40:41 T:3016276480 WARNING: Cleanup: Having to cleanup texture dialogs/context_highlight.png

On Ubuntu 12 with XBMC 12b3 the same thing happens with a different skin enabled. No clear issue in the debug log, just a hard fail and xbmc crashes completely.

Debug log here: http://paste.ubuntu.com/1427911/ (using neon skin)
Debug log #2 : http://paste.ubuntu.com/1427924/ (I switched to Confluence, removed all the *.pyc files in de script folders, restarted xbmc and tried again.)


RE: [RELEASE] Spotimc: Another Spotify music addon - hightow - 2012-12-12

I haven't read all 45 pages, so maybe this is already been answered... Smile
It requires a premium account. Anything to do about that?


RE: [RELEASE] Spotimc: Another Spotify music addon - mazkolain - 2012-12-13

Hello,

This post is about the crash that happens since Frodo beta3 on Linux. I'll leave answers for other topics for later, as I feel that I should focus on this one first. Sorry...

I made some tests and I managed to track down the exact point where the crash happens. I reported the issue with additional information and a test addon that helps to reproduce it on the following thread:
http://forum.xbmc.org/showthread.php?tid=148120

(2012-12-12, 11:39)chippen Wrote: I am running XBMC Frodo on ubuntu 12.04 64bit. (I might add that I run XBMC in bumblebee (optirun) even though i don't think that influences this problem)
I have tried to debug in Frodo. It seems like it seg faults when it tries to return from __call__ in weakmethod.py (PySpotifyCTypes.egg/utils).

It is the second time it reaches the return, when it has tried to do offlinelogin (and failed in my case)
Code:
def __call__(self, *args, **kwargs):
        method = getattr(self.__obj(), self.__func().__name__)
        return method(*args, **kwargs)


Extract from xbmc.log
Code:
10:15:45 T:140507484354432   ERROR: ClearBlock: Trying to clear non existent block /home/chippen/.xbmc/addons/script.audio.spotimc
10:18:16 T:140506944182016   ERROR: Previous line repeats 2 times.
10:18:16 T:140506944182016  NOTICE: libspotify log: 09:17:27.609 I [offline_authorizer.cpp:297] Unable to login offline: no such user

Full log:
http://pastebin.com/J38DBuQ1

Crash log:
http://pastebin.com/Qxe4SqFP
Thanks a lot for the hint!

This class is to wrap some callback methods and avoid garbage collection issues. As you pointed out, the crash seems to happen on some code that gets called by these classes, as I explained on the development forums.

(2012-12-12, 18:59)Kibje Wrote:
(2012-12-09, 16:45)Frank-NL Wrote: On OpenELEC 3.0 beta 4 (including XBMC 12.0b3) Spotimc crashes XBMC with the following in the log:

15:40:40 T:2582657856 NOTICE: Previous line repeats 1 times.
15:40:40 T:2582657856 NOTICE: Thread XBPyThread start, auto delete: false
15:40:40 T:2582657856 NOTICE: -->Python Interpreter Initialized<--
15:40:40 T:2582657856 NOTICE: /storage/.xbmc/addons/skin.aeon.nox/write_test.txt
15:40:40 T:2582657856 ERROR: /storage/.xbmc/addons/script.audio.spotimc/resources/libs/XbmcSkinUtils.egg/skinutils/fonts.py:138: FutureWarnin
g: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
15:40:40 T:2582657856 NOTICE: /storage/.xbmc/addons/skin.aeon.nox/write_test.txt
15:40:40 T:2582657856 NOTICE: install include: /storage/.xbmc/addons/script.audio.spotimc/resources/skins/DefaultSkin/720p/includes.xml
15:40:41 T:3016276480 ERROR: ClearBlock: Trying to clear non existent block /storage/.xbmc/addons/script.audio.spotimc
15:40:41 T:3016276480 ERROR: Previous line repeats 1 times.
15:40:41 T:3016276480 WARNING: Cleanup: Having to cleanup texture dialogs/context_nofocus.png
15:40:41 T:3016276480 WARNING: Cleanup: Having to cleanup texture dialogs/context_highlight.png

On Ubuntu 12 with XBMC 12b3 the same thing happens with a different skin enabled. No clear issue in the debug log, just a hard fail and xbmc crashes completely.

Debug log here: http://paste.ubuntu.com/1427911/ (using neon skin)
Debug log #2 : http://paste.ubuntu.com/1427924/ (I switched to Confluence, removed all the *.pyc files in de script folders, restarted xbmc and tried again.)
As you say, there isn't much info on the xbmc logs, as Spotimc seems to completely kill the XBMC process. Thanks for the report!



RE: [RELEASE] Spotimc: Another Spotify music addon - Kib - 2012-12-13

(2012-12-13, 00:49)mazkolain Wrote: As you say, there isn't much info on the xbmc logs, as Spotimc seems to completely kill the XBMC process. Thanks for the report!

No problem! I love your addon - better said my girlfriend loves your addon - and since upgrading to xbmc 12b3 the WAF of my media system has gone down considerably. Wink
If there is anything I can do to help / test please let me know.
I am currently sick at home with stomach flu and bored out of my brain after browsing the internet for the last week.


RE: [RELEASE] Spotimc: Another Spotify music addon - Kib - 2012-12-13

Just an update that will not surprise anyone: the issue is unchanged with XBMC 12 RC1

From your statement I see it has to do with calling the log function of XBMC. Although I understand logging is cool and all, I don't really need it because the plugin is working fine for me. I wonder if I can get it running by removing all references to the logging call you know, just to increase the WAF

EDIT: figured it out. Did not need to comment everything out, just some in the __init__ and replace them with a nonsense statement declaring a new madeup variable to be true.
'
EDIT: I did need to comment them ALL out and replaced them with a nonsense statement so that every function still "did something", otherwise it would crash still xbmc when closing Spotimc.

Yay, I learned something new today and got Spotimc working again until we wait for a real fix =)

Code:
12:38:54 T:2568977216  NOTICE: 192.168.178.104 - - [13/Dec/2012:12:38:54] "HEAD /track/4c4ktiPhwxXweksj7wq1tv.wav?idx=1 HTTP/1.1" 200 45687644 "" "Spotimc/1.0-beta3 (XBMC/12.0-RC1 Git:49b2d1f)"



RE: [RELEASE] Spotimc: Another Spotify music addon - Kib - 2012-12-13

(2012-12-12, 01:29)xburchartz Wrote: I installed the addon and everythings seems to be ok. I can browse through my playlists and select a song. But then... nothing happens. I don't hear anything.
I can imagine you need a log file in order to be able to say anything about it. What should I provide?

Thanks
Do you hear anything if you play a normal wav file from within XBMC ? Because that is what the plugin does, it grabs wav files from spotify and plays them through the normal xbmc player.

The way to make a debug log and where to upload it can be found here. Do not forget to say which OS, which version of XBMC and which version of the plugin you are running.

(2012-12-12, 20:03)hightow Wrote: I haven't read all 45 pages, so maybe this is already been answered... Smile
It requires a premium account. Anything to do about that?
No. It uses the spotify API to access your playlists. That requires a premium account.
Alternative answer: Yes. Get a premium account Smile


RE: [RELEASE] Spotimc: Another Spotify music addon - TFHfony - 2012-12-13

(2012-12-13, 13:02)Kibje Wrote: Just an update that will not surprise anyone: the issue is unchanged with XBMC 12 RC1

From your statement I see it has to do with calling the log function of XBMC. Although I understand logging is cool and all, I don't really need it because the plugin is working fine for me. I wonder if I can get it running by removing all references to the logging call you know, just to increase the WAF

EDIT: figured it out. Did not need to comment everything out, just some in the __init__ and replace them with a nonsense statement declaring a new madeup variable to be true.
'
EDIT: I did need to comment them ALL out and replaced them with a nonsense statement so that every function still "did something", otherwise it would crash still xbmc when closing Spotimc.

Yay, I learned something new today and got Spotimc working again until we wait for a real fix =)

Code:
12:38:54 T:2568977216  NOTICE: 192.168.178.104 - - [13/Dec/2012:12:38:54] "HEAD /track/4c4ktiPhwxXweksj7wq1tv.wav?idx=1 HTTP/1.1" 200 45687644 "" "Spotimc/1.0-beta3 (XBMC/12.0-RC1 Git:49b2d1f)"

Is there an easy way for a simple guy like me to get it to work again as well? I would like to make use of my premium account again and my wife would also be quite happy ;-) I can access the box through SSH if needed Wink

Thanks!


RE: [RELEASE] Spotimc: Another Spotify music addon - Kib - 2012-12-13

(2012-12-13, 20:35)TFHfony Wrote: Is there an easy way for a simple guy like me to get it to work again as well? I would like to make use of my premium account again and my wife would also be quite happy ;-) I can access the box through SSH if needed Wink

Thanks!
You would need to change three files in a similar way to the changes I made which can be viewed here.
Be careful with the spaces, those are important in python files (eg. things need to line up). I would suggest to make a backup before you start editing.

Alternatively just download my files and overwrite yours. That can be done from the same link.