Publicy wrote: > 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 > ....
Opps... > > > 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) LANG and SUBTITLE are defined in event.py and map directly to the lircrc file. So you need a map a lirc key to the LANG and another to SUBTITLE. The key 'l' is SUBTITLE and the key 'a' is LANG. I use: begin button = ASTERIX prog = freevo repeat = 0 config = LANG end begin button = HASH prog = freevo repeat = 0 config = SUBTITLE end Where ASTERIX and HASH are codes in the lircd.conf PLAYLIST_NEXT is CH- or DOWN (key 'v') HTH Duncan ------------------------------------------------------------------------------ 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