GithubHelp home page GithubHelp logo

Comments (2)

QiuChenly avatar QiuChenly commented on July 19, 2024

谢谢你的反馈.
但是若按照你的修改方法,会存在以下问题:
my_path = my_path.replace('/', '-') # 本代码若将其全部替换为-,意味着如下:C:/aa/aa/aas/as - sa.flac将会变为C:-aa-aa-aas-as - sa.flac,此路径为非法路径。
if not onlyShowSingerSelfSongs:
if not os.path.exists(my_path):
os.mkdir(f"{my_path}") # 在这里创建路径是非法路径:C:-aa-aa-aas-as - sa.flac

如果你的意思是
my_path = download_home+it['singer']+'\'
歌曲的名称中出现了非法字符:如“<>/?.”等,可以就以下两个值进行处理
1 {it['singer']}
2 {it['title']}

代码片段 函数 def parseList(list, target):
.....
songs.append({
'prefix': code,
'extra': format,
'notice': qStr,
'mid': mid,
'songmid': i['mid'],
'size': fsize,
'title': f'{i["title"]}', # 此处对歌曲名称做处理
'singer': f'{singer}', # 此处对歌手名称做处理
'album': albumName}) # 此处对专辑名称做处理
位于代码346行处。

from musicdownload.

QiuChenly avatar QiuChenly commented on July 19, 2024

有关此问题,我将会在近期修复,谢谢你的测试,如果有提供样本音乐名称供测试就更好了🤓🤓🤓

from musicdownload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.