[Florob] add album to tune pep message. see #3053
This commit is contained in:
parent
55a7061ea3
commit
f3f622769c
1 changed files with 4 additions and 6 deletions
|
@ -3680,10 +3680,8 @@ class RosterWindow:
|
||||||
else:
|
else:
|
||||||
artist = music_track_info.artist
|
artist = music_track_info.artist
|
||||||
title = music_track_info.title
|
title = music_track_info.title
|
||||||
status_message = '♪ ' + _('"%(title)s" by %(artist)s') % \
|
source = music_track_info.album
|
||||||
{'title': music_track_info.title,
|
print "change (%s - %s - %s) for %s" % (artist, source, title, account)
|
||||||
'artist': music_track_info.artist } + ' ♪'
|
|
||||||
print "change (%s - %s) for %s" % (artist, title, account)
|
|
||||||
if account == '':
|
if account == '':
|
||||||
print "Multi accounts"
|
print "Multi accounts"
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
|
@ -3692,10 +3690,10 @@ class RosterWindow:
|
||||||
continue
|
continue
|
||||||
if not gajim.connections[account].pep_supported:
|
if not gajim.connections[account].pep_supported:
|
||||||
continue
|
continue
|
||||||
pep.user_send_tune(account, artist, title, source = '')
|
pep.user_send_tune(account, artist, title, source)
|
||||||
else:
|
else:
|
||||||
print "Single account"
|
print "Single account"
|
||||||
pep.user_send_tune(account, artist, title, source = '')
|
pep.user_send_tune(account, artist, title, source)
|
||||||
|
|
||||||
|
|
||||||
def update_status_combobox(self):
|
def update_status_combobox(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue