shoorick: (Рыжий)
[personal profile] shoorick
Есть свой плюс в растпространении софта в исходниках: есть шанс доработать напильником. Вот сейчас как раз выдался случай: после смены плеера ljKlient потерял способность определять музыку. Пришлось взять напильник и научить: diff ljkkdeeventeditor.py.ORIG ljkkdeeventeditor.py
301c301
<                               players = ('amarok', 'kaffeine', 'audacious')
---
>                               players = ('amarok', 'kaffeine', 'audacious', 'mpc')
354a355,364
>                                                       break ## if we're here, we're done, if not, we'll try the next player
>                                       elif p == 'mpc': ## by Alexander Sapozhnikov http://shoorick.ru/
>                                               tmpfile = tempfile.NamedTemporaryFile()
>                                               os.system('/usr/local/bin/mpc >'+tmpfile.name)
>                                               title     = tmpfile.readline()
>                                               isplaying = tmpfile.readline()
>                                               tmpfile.close()
>                                               if isplaying != '':
>                                                       title = title.rstrip('\r\n')
>                                                       self.currmusicLineEdit.setText(title.decode('koi8-r'))

Profile

shoorick: (Default)
shoorick

December 2016

S M T W T F S
    1 23
45678910
11121314151617
18 19 2021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 24th, 2025 09:32 am
Powered by Dreamwidth Studios