|
|
|
@ -66,7 +66,7 @@ data class BookChapter( |
|
|
|
|
val urlMatcher = AnalyzeUrl.paramPattern.matcher(url) |
|
|
|
|
val urlBefore = if(urlMatcher.find())url.substring(0,urlMatcher.start()) else url |
|
|
|
|
val urlAbsoluteBefore = NetworkUtils.getAbsoluteURL(baseUrl,urlBefore) |
|
|
|
|
return if(urlBefore.length == url.length) urlAbsoluteBefore else urlAbsoluteBefore + url.substring(urlMatcher.end()) |
|
|
|
|
return if(urlBefore.length == url.length) urlAbsoluteBefore else urlAbsoluteBefore + ',' + url.substring(urlMatcher.end()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun getFileName(): String = String.format("%05d-%s.nb", index, MD5Utils.md5Encode16(title)) |
|
|
|
|