Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否将一级目录作为播放列表? #93

Closed
wangweitung opened this issue Jun 30, 2024 · 9 comments
Closed

能否将一级目录作为播放列表? #93

wangweitung opened this issue Jun 30, 2024 · 9 comments
Labels
好建议 Good for newcomers

Comments

@wangweitung
Copy link

当前逻辑是:所有的文件夹都作为播放列表:
【周杰伦】

  • 【专辑1】
  • 【专辑2】
  • 【专辑3】

可我只需要将【周杰伦】文件夹作为播放列表。

能否增加此功能优化?谢谢~

@lfx285
Copy link

lfx285 commented Jun 30, 2024

已经有了深度设置了,不过二级目录的歌曲仍然获取不到,好像设置深度后列表和检索歌曲都只按照设置的深度检索,感觉还能优化一下

@hanxi
Copy link
Owner

hanxi commented Jun 30, 2024

已经有了深度设置了,不过二级目录的歌曲仍然获取不到,好像设置深度后列表和检索歌曲都只按照设置的深度检索,感觉还能优化一下

确实没考虑到这个问题,检索深度和生成播放列表要分开搞。

@hanxi hanxi added the 好建议 Good for newcomers label Jul 6, 2024
@hanxi
Copy link
Owner

hanxi commented Jul 6, 2024

确认一下是不是这样的效果,比如深度设为2,目录机构如下:

a                                                       
a/b3.txt                                                
a/b1.txt                                                
a/b                                                     
a/b/c2.txt                                              
a/b/c1.txt                                              
a/b/c                                                   
a/b/c/d                                                 
a/b/c/d/e2.txt                                          
a/b/c/d/e1.txt                                          
a/b/c/d/e                                               
a/b/c/d/e/f2.txt                                        
a/b/c/d/e/f1.txt                                        
a/b/c/d/e/f
a/b/c/d/e/f/g1.txt                                      
a/b/c/d/e/f/g2.txt
a/b/c/d1.txt
a/b/c/d2.txt                                            
a/b/c/d3.txt
a/b/c3.txt                                              
a/b2.txt

搜索出的结果如下: 只有 a 和 a/b 两层,大于2的都集中到 第二层里。

a: ['a/b3.txt', 'a/b1.txt', 'a/b2.txt']                 

a/b: ['a/b/c2.txt', 'a/b/c1.txt', 'a/b/c3.txt', 'a/b/c/d1.txt', 'a/b/c/d2.txt', 'a/b/c/d3.txt', 'a/b/c/d/e2.txt', 'a/b/c/d/e1.txt', 'a/b/c/d/e/f2.txt', 'a/b/c/d/e/f1.txt', 'a/b/c/d/e/f/g1.txt', 'a/b/c/d/e/f/g2.txt']

@hanxi
Copy link
Owner

hanxi commented Jul 6, 2024

关联需求 #76

@lfx285
Copy link

lfx285 commented Jul 6, 2024

确认一下是不是这样的效果,比如深度设为2,目录机构如下:

a                                                       
a/b3.txt                                                
a/b1.txt                                                
a/b                                                     
a/b/c2.txt                                              
a/b/c1.txt                                              
a/b/c                                                   
a/b/c/d                                                 
a/b/c/d/e2.txt                                          
a/b/c/d/e1.txt                                          
a/b/c/d/e                                               
a/b/c/d/e/f2.txt                                        
a/b/c/d/e/f1.txt                                        
a/b/c/d/e/f
a/b/c/d/e/f/g1.txt                                      
a/b/c/d/e/f/g2.txt
a/b/c/d1.txt
a/b/c/d2.txt                                            
a/b/c/d3.txt
a/b/c3.txt                                              
a/b2.txt

搜索出的结果如下: 只有 a 和 a/b 两层,大于2的都集中到 第二层里。

a: ['a/b3.txt', 'a/b1.txt', 'a/b2.txt']                 

a/b: ['a/b/c2.txt', 'a/b/c1.txt', 'a/b/c3.txt', 'a/b/c/d1.txt', 'a/b/c/d2.txt', 'a/b/c/d3.txt', 'a/b/c/d/e2.txt', 'a/b/c/d/e1.txt', 'a/b/c/d/e/f2.txt', 'a/b/c/d/e/f1.txt', 'a/b/c/d/e/f/g1.txt', 'a/b/c/d/e/f/g2.txt']

这样非常合理

@hanxi hanxi closed this as completed in d559413 Jul 7, 2024
@hanxi
Copy link
Owner

hanxi commented Jul 7, 2024

@wangweitung 有空可以帮忙测试一下是否正常,你可以设置深度为2试试。

@wangweitung
Copy link
Author

@wangweitung 有空可以帮忙测试一下是否正常,你可以设置深度为2试试。

好的,我是docker部署,等镜像更新测试后反馈。

@hanxi
Copy link
Owner

hanxi commented Jul 7, 2024

@wangweitung
Copy link
Author

https://github.com/hanxi/xiaomusic/releases/tag/v0.1.98 新版本已出。

已OK,感谢开发者~👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
好建议 Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants