|
x1sc0
|
 |
« on: December 22, 2009, 08:34:27 AM » |
|
I've created a version of currentsong for spotify under wine based on http://github.com/pilt/spotify. i had some problem to do using the python file because it doesn't work anymore so I decided to used the shell script. I tried to do my best but i'm sure it's not the most efficient. Anyway I think it does what it has to do. Please try it and let me know if you find any problem. BTW, if you don't have an account yet, you can sign up here: http://www.nower.se/spotify/adéu
|
|
|
|
|
Logged
|
|
|
|
|
C10uD
|
 |
« Reply #1 on: December 22, 2009, 12:17:04 PM » |
|
xisco, get rid of the script and we can have a deal
|
|
|
|
|
Logged
|
|
|
|
|
x1sc0
|
 |
« Reply #2 on: December 22, 2009, 04:07:13 PM » |
|
Ok, I passed it to python and surprisingly it works !!! I'm proud of myself. Enjoy it.
* Spotify.py is placed in currentsong folder
|
|
|
|
|
Logged
|
|
|
|
|
C10uD
|
 |
« Reply #3 on: December 23, 2009, 03:46:07 AM » |
|
great, applied
|
|
|
|
|
Logged
|
|
|
|
jaansson
Newbie
l33tness: 0
Offline
Posts: 1
|
 |
« Reply #4 on: December 27, 2009, 09:57:12 AM » |
|
Oh, this seem awesome! But I can't seem to get it working. I've tried putting this Spotify.py in the .config/emeseme/plugin folder and the same/currentsong folder AND the /usr/shared/emesene/pluginsomething/currentSong folder. I also tried throwing in the .diff file. I've been reloading the plugins and stuff, but I must be doing something wrong. Would appreciate some help  Oh, and I used the files that you uploaded the second time.
|
|
|
|
|
Logged
|
|
|
|
|
C10uD
|
 |
« Reply #5 on: December 28, 2009, 02:40:25 AM » |
|
download emesene svn and it will work out of the box  otherwise apply the diff AND move the spotify plugin to plugins_base/currentSong 
|
|
|
|
|
Logged
|
|
|
|
|
karasu
|
 |
« Reply #6 on: February 07, 2010, 02:56:42 PM » |
|
I just wanted to say thanks to x1sc0 !!!
It works perfectly well...
Thanks!!!
|
|
|
|
|
Logged
|
I a vegades... els ocells fan cagarades...
|
|
|
|
karasu
|
 |
« Reply #7 on: March 08, 2010, 10:14:37 AM » |
|
Hi!
I want to propose a little fix, as I get some white spaces before and after song title and an ending " that makes current song plugin not find covers.
(attached)
|
|
|
|
|
Logged
|
I a vegades... els ocells fan cagarades...
|
|
|
|
arielj
|
 |
« Reply #8 on: March 08, 2010, 12:46:50 PM » |
|
applied!
|
|
|
|
|
Logged
|
|
|
|
|
ukblacknight
|
 |
« Reply #9 on: March 09, 2010, 05:23:58 AM » |
|
Great work! I looked into implementing this myself, but it seemed quite hacky so I couldn't be bothered  There seems to be a performance issue though - emesene seems slightly unresponsive when the music plugin is enabled with spotify, such as it takes half a second or so for characters to appear when typing in the conversation windows, and so on. I'm guessing it could be hard to get feedback on this since only a few countries have Spotify, so I'll try my best to help solve this 
|
|
|
|
|
Logged
|
|
|
|
|
ukblacknight
|
 |
« Reply #10 on: March 09, 2010, 06:55:02 AM » |
|
RE: Performance strout = os.popen("xwininfo -root -tree", "r") for line in strout.readlines(): if "(\"spotify.exe\" \"Wine\")" in line: if "has no name" not in line: if "\"Spotify\": (\"spotify.exe\" \"Wine\")" in line: self.artist = '' self.title = '' return True else: aux = line Could this loop be the culprit?
|
|
|
|
|
Logged
|
|
|
|
|
karasu
|
 |
« Reply #11 on: March 09, 2010, 11:14:42 AM » |
|
Well, perhaps this is the problem: os.popen("xwininfo -root -tree", "r") This is running xwininfo each time we want to check if song has changed. Anyway, I didn't notice that emesene was slower using spotify.... :S
|
|
|
|
|
Logged
|
I a vegades... els ocells fan cagarades...
|
|
|
Gizzmo
Newbie
l33tness: 0
Offline
Posts: 1
|
 |
« Reply #12 on: July 15, 2010, 02:30:49 AM » |
|
Now that there is a native Spotify client for Linux ( http://www.spotify.com/se/download/previews/), its time to update this script or make a new one. Can it be done?
|
|
|
|
|
Logged
|
|
|
|
|