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

MV下载出错 #3

Open
Mr-z-j opened this issue Sep 14, 2019 · 2 comments
Open

MV下载出错 #3

Mr-z-j opened this issue Sep 14, 2019 · 2 comments

Comments

@Mr-z-j
Copy link

Mr-z-j commented Sep 14, 2019

main.rs文件中

let extension = match download_url.rfind(".") {
None => typ.as_str(),
Some(index) => &download_url[index..],
};

因mv后缀增加了密钥参数,所以mp4扩展名取错,创建文件时卷标报错

@Mr-z-j
Copy link
Author

Mr-z-j commented Sep 14, 2019

我把这里改了
let filename = match typ.as_str() {
"mp3" => format!("{}{}", song.file_name(&fmt), ".mp3"),
"mv" => format!("{}{}", song.file_name(&fmt), ".mp4"),
_ => unreachable!(),
};

@lonng
Copy link
Owner

lonng commented Sep 15, 2019

@ZzzZZZ7 Can you submit a pull request to fix it?

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

No branches or pull requests

2 participants