mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
b808097beb
commit
cef3c95abb
@ -52,6 +52,9 @@ object DirectLinkUpload {
|
||||
}
|
||||
val analyzeUrl = AnalyzeUrl(url)
|
||||
val res = analyzeUrl.upload(mFileName, mFile, mContentType)
|
||||
if (mFile is File) {
|
||||
mFile.delete()
|
||||
}
|
||||
val analyzeRule = AnalyzeRule().setContent(res.body, res.url)
|
||||
val downloadUrl = analyzeRule.getString(downloadUrlRule)
|
||||
if (downloadUrl.isBlank()) {
|
||||
|
Loading…
Reference in New Issue
Block a user