Hello, after reading "[Freevo-users] lastfm plugin questions" post I tried to use lastFM2 plugin, it seems to works fine for the reading (freevo 1.8.3)
But I can't skip, love or ban the current track. I tried the following keys (on my remote) as described in plugin information : | RIGHT - skip song | 1 - send to lastfm LOVE song | 9 - send to lastfm BAN song So I decided to read the plugin code and here is the section wich deals with events : .... elif event == 'PLAYLIST_NEXT': self.skip() return True elif event == 'LANG': # Love self.ban() return True elif event == 'SUBTITLE': # bAn self.love() return True .... So it seem that the keys has changed between lastFM and lastFM2, below the lastFm source code : .... config.EVENTS['audio']['RIGHT'] = Event(FUNCTION_CALL, arg=self.skip) config.EVENTS['audio']['1'] = Event(FUNCTION_CALL, arg=self.love) config.EVENTS['audio']['9'] = Event(FUNCTION_CALL, arg=self.ban) .... As we can see also the comment on lastFm2 are also wrong (# Love ... self.ban()). Can you confirm these fact (I'me not a python developer) ? What are LANG and SUBTITLE events, they are not defined in audio context, I tryed to add thes mapping in my local_conf but I had an error : EVENTS['audio']['BLUE'] = Event(SUBTITLE) EVENTS['audio']['RED'] = Event(LANG) I also add these one EVENTS['audio']['SKIPFWD'] = Event(PLAYLIST_NEXT) no error but nothing happened, here is the logs : 2008-12-10 21:14:58,663 DEBUG detach.py (88): _event_handler(event=PLAYLIST_NEXT) 2008-12-10 21:14:58,665 DEBUG detachbar.py (119): _event_handler(event=PLAYLIST_NEXT) 2008-12-10 21:14:58,666 DEBUG main.py (273): handling event PLAYLIST_NEXT 2008-12-10 21:14:58,668 DEBUG __init__.py (135): PluginInterface.eventhandler(event=PLAYLIST_NEXT: <class 'event.Event'>, menuw=None) 2008-12-10 21:14:58,669 DEBUG main.py (291): no eventhandler for event PLAYLIST_NEXT 2008-12-10 21:14:58,674 DEBUG rc.py (597): EventHandler.key_event_mapper(key='SKIPFWD') 2008-12-10 21:14:58,675 DEBUG rc.py (587): EventHandler.post_event(event='PLAYLIST_NEXT') 2008-12-10 21:14:58,677 DEBUG lastfm.py (265): refresh() Can you help me to deal with those events ? Thanks Yoann ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users