guanguans / music-dl

Music Searcher and Downloader. - 音乐搜索下载器。
https://guanguans.github.io/music-dl
MIT License
663 stars 62 forks source link

音乐标题中含有特殊字符时,下载异常 #811

Open midfar opened 1 hour ago

midfar commented 1 hour ago

搜索:周杰伦 yes 2

标题是这个 一路向北 (钢琴版) [原唱: 周杰伦] 纪钧瀚 (Bryan Chi) 睡眠音乐合辑 钢琴古典与华语流行 netease 469.5 KB 128

保存到本地的文件名是这个 纪钧瀚 (Bryan Chi) - 一路向北 (钢琴版) [原唱

文件名被截断,且文件大小为0

create-issue-branch[bot] commented 1 hour ago

Branch issue-811-音乐标题中含有特殊字符时,下载异常 created!

guanguans commented 1 hour ago

刚测试没问题哦

image
 ┌ 是否下载歌曲? ──────────────────────────────────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

 ┌ 请选择歌曲 ───────────────────────────────────────────────────────────────────────────────────────────────────┐
 │ 一路向北 (钢琴版) [原唱: 周杰伦]  纪钧瀚 (Bryan Chi)  睡眠音乐合辑 钢琴古典与华语流行  netease  469.5 KB  128 │
 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 ┌ /Users/yaozm/Downloads/MusicDL/纪钧瀚 (Bryan Chi) - 一路向北 (钢琴版) [原唱: 周杰伦].mp3 ┐
 │ ████████████████████████████████████████████████████████████                             │
 └─────────────────────────────────────────────────────────────────────────── 480813/480813 ┘

 ┌ 请输入关键字 ────────────────────────────────────────────────┐
 │ 关键字                                                       │
 └──────────────────────────────────────────────────────────────┘
midfar commented 1 hour ago

你是win10操作系统,磁盘是ntfs格式吗?操作系统限制了,文件名不能包含下列任何字符 \ / : * ? " < > | 你在保存文件时,有做这些特殊字符替换吗?

Issues-translate-bot commented 1 hour ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You are running win10 operating system, is the disk in ntfs format? Due to operating system restrictions, the file name cannot contain any of the following characters \ / : * ? " < > | Did you replace these special characters when saving the file?

guanguans commented 1 hour ago

我没有 windows 本地不好测试。 你可以提供解决方案 pr 上来。

Issues-translate-bot commented 1 hour ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I don't have windows so I can't test it locally. You can provide the solution pr up.

midfar commented 1 hour ago

我还没找到搜索、下载文件那块的代码在哪~

Issues-translate-bot commented 1 hour ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I haven't found the code for searching and downloading files~

guanguans commented 1 hour ago

我还没找到搜索、下载文件那块的代码在哪~

https://github.com/guanguans/music-dl/blob/master/app/Support/Utils.php#L40-L55

GitHub
music-dl/app/Support/Utils.php at master · guanguans/music-dl
Music Searcher and Downloader. - 音乐搜索下载器。. Contribute to guanguans/music-dl development by creating an account on GitHub.
Issues-translate-bot commented 1 hour ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I haven’t found the code for searching and downloading files~

https://github.com/guanguans/music-dl/blob/master/app/Support/Utils.php#L40-L55

GitHub
music-dl/app/Support/Utils.php at master · guanguans/music-dl
Music Searcher and Downloader. - 音乐搜索下载器。. Contribute to guanguans/music-dl development by creating an account on GitHub.
midfar commented 59 minutes ago

执行什么命令直接运行源码呢?

Issues-translate-bot commented 58 minutes ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What command should be executed to directly run the source code?

guanguans commented 44 minutes ago

执行什么命令直接运行源码呢?

根目录下有个 music-dl 可执行文件。

./music-dl 或者 php music-dl`

Issues-translate-bot commented 43 minutes ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What command should be executed to directly run the source code?

There is a music-dl executable file in the root directory.

./music-dl or php music-dl`

midfar commented 39 minutes ago

image 貌似有文件没提交,没法正常运行

midfar commented 19 minutes ago

哦,知道了,要先运行 composer install --ignore-platform-req=ext-pcntl