Skip to content

Commit

Permalink
Merge pull request #585 from out0fmemory/feat_hot
Browse files Browse the repository at this point in the history
增加评论点赞数功能
  • Loading branch information
darknessomi authored Jul 15, 2017
2 parents 38b5945 + 634afb2 commit 8f9fd95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEMbox/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def dispatch_enter(self, idx):
self.datalist = []
for one_comment in hotcomments:
self.datalist.append(
u'(热门评论)%s:%s' % (one_comment['user']['nickname'],
u'(热评 %s❤️ ️)%s:%s' % (one_comment['likedCount'], one_comment['user']['nickname'],
one_comment['content']))
for one_comment in comcomments:
self.datalist.append(one_comment['content'])
Expand Down
2 changes: 1 addition & 1 deletion NEMbox/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def recall(self):
item['album_name'], item['quality'],
time.time())
if self.notifier:
self.ui.notify('Now playing', item['song_name'],
self.ui.notify('正在播放', item['song_name'],
item['album_name'], item['artist'])
self.playing_id = item['song_id']
self.playing_name = item['song_name']
Expand Down
2 changes: 1 addition & 1 deletion NEMbox/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def addstr(self, *args):

def notify(self, summary, song, album, artist):
if summary != 'disable':
body = '%s\nin %s by %s' % (song, album, artist)
body = '%s\n专辑 %s 歌手 %s' % (song, album, artist)
content = summary + ': ' + body
notify(content)

Expand Down

0 comments on commit 8f9fd95

Please sign in to comment.