We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果使用-m开启多线程下载,当文件名filename中间包含正则表达式中的转义字符时会出现如下错误
-m
filename
error parsing regexp: invalid character class range: `1-0`
具体是下面这行code实现有问题: https://github.com/iawia002/annie/blob/c24fbc04b8260cc5923af12be9baf30d35735325/downloader/downloader.go#L388
举例:
pattern := "test P1 [2020-01-01].flv.part.+" reg := regexp.MustCompile(pattern)
会错把[2020-01-01]当成正则表达式去解析而导致出错
[2020-01-01]
The text was updated successfully, but these errors were encountered:
fix iawia002#657
d5869c6
1. 生成part文件时将文件名md5,避免出现特殊字符导致
Revert "fix iawia002#657 1. 生成part文件时将文件名md5,避免出现特殊字符导致"
f08191b
This reverts commit d5869c6
e69e812
Successfully merging a pull request may close this issue.
如果使用
-m
开启多线程下载,当文件名filename
中间包含正则表达式中的转义字符时会出现如下错误具体是下面这行code实现有问题:
https://github.com/iawia002/annie/blob/c24fbc04b8260cc5923af12be9baf30d35735325/downloader/downloader.go#L388
举例:
会错把
[2020-01-01]
当成正则表达式去解析而导致出错The text was updated successfully, but these errors were encountered: