Skip to content

Commit

Permalink
修复搜索歌曲出错 (#771)
Browse files Browse the repository at this point in the history
* 1、修复歌单详情只有一首歌;2、缓存文件路径修改至~/.netseae-musicbox/nemcache.sqlite,而不是当前文件夹下的nemcache.sqlite;3、将旧版的每日推荐歌曲(非歌单)添加至当前版本

* 修复每过20分钟可能出现的播放错误

* 修复切换歌单时可能出现的切换不成功问题。如:当前播放歌曲为歌单1的第3首,想切换至歌单2的第3首时(索引位置一致,都为3),会出现UI歌名发生变化,歌曲却暂停播放、未切换

* 修复搜索歌曲出错
  • Loading branch information
anhoder authored and kigawas committed Nov 26, 2018
1 parent efd4cbc commit b859a93
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions NEMbox/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ def search(self, category):
self.ui.screen.timeout(-1)
SearchArg = namedtuple('SearchArg', ['prompt', 'api_type', 'post_process'])
category_map = {
'songs': SearchArg(
'搜索歌曲:', 1,
lambda datalist: self.api.songs_url([s['id'] for s in datalist])
),
'songs': SearchArg('搜索歌曲:', 1, lambda datalist: datalist),
'albums': SearchArg('搜索专辑:', 10, lambda datalist: datalist),
'artists': SearchArg('搜索艺术家:', 100, lambda datalist: datalist),
'playlists': SearchArg('搜索网易精选集:', 1000, lambda datalist: datalist)
Expand Down

0 comments on commit b859a93

Please sign in to comment.