|
Jul 23 2007, 9:06 PM EDT
|
|
|
edit |
2 words added
2 words deleted
|
|
Change: (little)(Little) issues:Issues:Listen changes its window name according to the song played. Therefor it was a little hard to find the task on the icon bar. If the format of the window name is not right for you, you can change it.Listens plugin system
View changes from previous version.
(Word count: 150)
|
|
Mar 2 2007, 9:06 AM EST
|
Timon_and_Pumba
|
|
edit |
6 words added
246 words deleted
|
|
Change: # Change this if your Listen version uses a different format (\u266A is the musicnote)WINDOW_NAME_FORMAT = u'Listen \u266A %(title)s - %(artist)s %(album)s \u266A '# Alter viewing preferences:SHOW_ALBUM_COVER = 1SHOW_SONG_PROGRESS = 1# restore icon on exit of this plugindef restore_icon():awn.UnsetTaskIconByName(icon_name)awn.SetProgressByName(icon_name, 100)atexit.register(restore_icon)#
View changes from previous version.
(Word count: 150)
|
|
Feb 27 2007, 11:04 AM EST
|
Timon_and_Pumba
|
|
edit |
8 words added
|
|
Change: not exist (extra check needed)if len(cover) and os.path.exists(cover): awn.SetTaskIconByName(icon_name, cover)else:awn.UnsetTaskIconByName(icon_name)if SHOW_SONG_PROGRESS:# set the progress indicator to the percentage of song played if position > 0 and length > 0:awn.SetProgressByName(icon_name, (position / length))# sleep a little, then looptime.sleep(1)
View changes from previous version.
(Word count: 405)
|
|
Feb 27 2007, 9:24 AM EST
|
Timon_and_Pumba
|
|
edit |
14 words added
|
|
Change: # Alter viewing preferences:SHOW_ALBUM_COVER = 1SHOW_SONG_PROGRESS = 1# restore icon on exit of this plugindef restore_icon(): awn.UnsetTaskIconByName(icon_name) awn.SetProgressByName(icon_name, 100)atexit.register(restore_icon)# dbus stuffsession_bus = dbus.SessionBus()# get awn handleawn_obj = session_bus.get_object("com.google.code.Awn", "/com/google/code/Awn")awn = dbus.Interface(awn_obj, "com.google.code.Awn")# get listen handlelisten_obj = session_bus.get_object("org.gnome.Listen", "/org/gnome/listen")
View changes from previous version.
(Word count: 399)
|
|
Feb 27 2007, 9:15 AM EST
|
Timon_and_Pumba
|
|
edit |
16 words added
1 word deleted
|
|
Change: # Change this if your Listen version uses a different format (\u266A is the musicnote)WINDOW_NAME_FORMAT = u'Listen \u266A %(title)s - %(artist)s %(album)s \u266A '# restore icon on exit of this plugindef restore_icon(): awn.UnsetTaskIconByName(icon_name) awn.SetProgressByName(icon_name, 100)atexit.register(restore_icon)# dbus stuffsession_bus = dbus.SessionBus()# get awn handleawn_obj
View changes from previous version.
(Word count: 388)
|
|
Feb 27 2007, 9:14 AM EST
|
Timon_and_Pumba
|
|
edit |
3 words deleted
|
|
Change: #pid = listen_obj.GetConnectionUnixProcessID()# loop foreverwhile(1): # get path of the cover cover = listen.get_cover_path() # get the current position in the song position = 100 * float(listen.current_position()) # get the length of the current song length = float(listen.current_song_length()) # other variables (in window name) vars =
View changes from previous version.
(Word count: 374)
|
|
Feb 27 2007, 9:13 AM EST
|
Timon_and_Pumba
|
|
edit |
117 words added
103 words deleted
|
|
Change: AWN bar. Both "listen" and "Listen" don't work for me, but someonesong reportedplayed. thatTherefor it worked forwas him.a Maybelittle thehard PID-wayto isfind the solution (suggested as an upcoming feature). Now Itask found that this ison the problemicon (listen
View changes from previous version.
(Word count: 377)
|
|
Feb 27 2007, 7:51 AM EST
|
Timon_and_Pumba
|
|
edit |
31 words added
1 image deleted
|
|
Change: Created for |Listen ♪ Torn - Natalie Imbruglia Left of the Middle ♪ |Resolved issues:Support for dbus current_song_length is now added to Listen SVN.Here you are:-------------------------------------# Listen plugin for AWN# Author T.D. ter Braak# import librariesimport dbusimport timeimport atexitimport
View changes from previous version.
(Word count: 362)
|
|
Feb 27 2007, 7:49 AM EST
|
Timon_and_Pumba
|
|
edit |
16 words added
1 image added
|
|
Change: Now I found that this is the problem (listen adds the title in the window name):Resolved issues:Support for dbus current_song_length is now added to Listen SVN.Here you are:-------------------------------------# Listen plugin for AWN# Author T.D. ter Braak# import librariesimport dbusimport timeimport
View changes from previous version.
(Word count: 335)
|
|
Feb 26 2007, 10:01 AM EST
|
Timon_and_Pumba
|
|
edit |
10 words added
36 words deleted
|
|
Change: request the song length via dbus (strangely that information was not available).In dbus_manager.py, add:@dbus.service.method("org.gnome.Listen")def current_song_length(self):returnListen self.player.get_length()/1000SVN.Here you are:-------------------------------------# Listen plugin for AWN# Author T.D. ter Braak# import librariesimport dbusimport timeimport atexitimport os# Name
View changes from previous version.
(Word count: 319)
|
|
Feb 26 2007, 8:48 AM EST
|
Timon_and_Pumba
|
|
edit |
44 words added
78 words deleted
|
|
Change: find the listen icon on the AWN bar. Both "listen" and "Listen" don't work for me, but someone reported that it worked for him. Maybe the PID-way is the solution (suggested as an upcoming feature).It works only with a patched SVN version of Listen. I added (and reqestedrequested
View changes from previous version.
(Word count: 356)
|
|
Feb 26 2007, 8:31 AM EST
|
Timon_and_Pumba
|
|
edit |
105 words added
42 words deleted
|
|
Change: # restore icon on exit of this plugindef restore_icon(): awn.UnsetTaskIconByName(icon_name) awn.SetProgressByName(icon_name, 100)atexit.register(restore_icon) # dbus stuffsession_bus = dbus.SessionBus(); # get awn handleawn_obj = session_bus.get_object("com.google.code.Awn", "/com/google/code/Awn");awn = dbus.Interface(awn_obj, "com.google.code.Awn"); # get listen handlelisten_obj = session_bus.get_object("org.gnome.Listen", "/org/gnome/listen");listen = dbus.Interface(listen_obj, "org.gnome.Listen"); icon_name# =loop "scribes"forever
View changes from previous version.
(Word count: 388)
|
|
Feb 26 2007, 7:59 AM EST
|
Timon_and_Pumba
|
|
edit |
1 word added
1 word deleted
|
|
Change: "scribed""scribes" to test the script).It displays the cover and the percentage of the song played. Other information about the song is already displayed in the title (bubble).Maybe this concept shows that we should not get our favorite
View changes from previous version.
(Word count: 326)
|
|
Feb 26 2007, 6:41 AM EST
|
Timon_and_Pumba
|
|
edit |
37 words added
|
|
Change: I added (and reqested this feature @listen-project) to request the song length via dbus (strangely that information was not available). @dbus.service.method("org.gnome.Listen") def current_song_length(self): return self.player.get_length()/1000Here you are:-------------------------------------# Listen plugin for AWN# Author T.D. ter Braakimport dbusimport timeimport atexitdef restore_icon(): awn.UnsetTaskIconByName(icon_name) awn.SetProgressByName(icon_name, 100)
View changes from previous version.
(Word count: 326)
|
|
Feb 26 2007, 6:39 AM EST
|
Timon_and_Pumba
|
|
edit |
23 words added
15 words deleted
|
|
Change: icon_name = "scribes"while(1): try:while(1): cover = listen.get_cover_path() position = 100 * float(listen.current_position()) length = float(listen.current_song_length()) # print "Current cover path is: '%s'" % cover # print "Current position is: '%d'" % position # print "Current song length is: '%d'" % length # print "Current percentage
View changes from previous version.
(Word count: 279)
|
|
Feb 26 2007, 6:38 AM EST
|
Timon_and_Pumba
|
|
edit |
1 word added
|
|
Change: -------------------------------------# Listen plugin for AWN# Author T.D. ter Braakimport dbusimport timesession_bus = dbus.SessionBus();awn_obj = session_bus.get_object("com.google.code.Awn", "/com/google/code/Awn");awn = dbus.Interface(awn_obj, "com.google.code.Awn");listen_obj = session_bus.get_object("org.gnome.Listen", "/org/gnome/listen");listen = dbus.Interface(listen_obj, "org.gnome.Listen");while(1): try: cover = listen.get_cover_path() position = 100 * float(listen.current_position()) length = float(listen.current_song_length()) #
View changes from previous version.
(Word count: 268)
|
|
Feb 26 2007, 6:26 AM EST
|
Timon_and_Pumba
|
|
edit |
242 words added
|
|
Change: Maybe this concept shows that we should not get our favorite programs to support AWN, but get them supported by AWN. We should add some hook to load such plugins at AWN startup.Here you are:# Listen plugin for AWN# Author T.D. ter Braakimport dbusimport time
View changes from previous version.
(Word count: 268)
|
|
Feb 26 2007, 6:17 AM EST
|
Timon_and_Pumba
|
|
create |
No content added or deleted. |
|
Change: Created by Timon_and_Pumba Feb 26 2007, 6:17 AM EST for: no reason given
|