Thanks for your answer
I have add these line to my /etc/freevo/lircrc file
begin
button = Star
prog = freevo
repeat = 0
config = LANG
end
begin
button = #
prog = freevo
repeat = 0
config = SUBTITLE
end
now When a press I have these message
2008-12-28 21:58:08,603 INFO rc.py (610): no event mapping for key
'SUBTITLE' in context 'audio'
2008-12-28 21:58:08,604 DEBUG rc.py (611): send button event BUTTON
arg='SUBTITLE'
2008-12-28 21:58:08,283 INFO rc.py (610): no event mapping for key
'STAR' in context 'audio'
2008-12-28 21:58:08,284 DEBUG rc.py (611): send button event BUTTON
arg='STAR'
So I tried to add these
EVENTS['audio']['SUBTITLE'] = Event(SUBTITLE)
EVENTS['audio']['LANG'] = Event(LANG)
but I've got these error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/freevo/main.py", line 53, in
<module>
import config
File "/usr/lib/python2.5/site-packages/freevo/config.py", line 636, in
<module>
execfile(overridefile, globals(), new_locals)
File "/etc/freevo/local_conf.py", line 107, in <module>
EVENTS['audio']['SUBTITLE'] = Event(SUBTITLE)
NameError: name 'SUBTITLE' is not defined
I don't really understand event in freevo and particulary those used by
lastfm2 plugin, can you help me ?
Thanks
Duncan Webb a écrit :
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
>
>
------------------------------------------------------------------------------
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users