mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
fix:直接导入的文件类型判断错误
This commit is contained in:
parent
6e0b2b0c5e
commit
b1ff349cc5
@ -39,8 +39,8 @@ class ImportOnLineBookFileViewModel(app: Application) : BaseViewModel(app) {
|
||||
val fileName = "${book.name} 作者:${book.author}"
|
||||
analyzeRule.getStringList(ruleDownloadUrls, isUrl = true)?.let {
|
||||
it.forEach { url ->
|
||||
val isSupportedFile = AppPattern.bookFileRegex.matches(fileName)
|
||||
val mFileName = "${fileName}.${LocalBook.parseFileSuffix(url)}"
|
||||
val isSupportedFile = AppPattern.bookFileRegex.matches(mFileName)
|
||||
allBookFiles.add(Triple(url, mFileName, isSupportedFile))
|
||||
}
|
||||
} ?: throw NoStackTraceException("下载链接规则解析为空")
|
||||
|
Loading…
Reference in New Issue
Block a user