Skip to content

Commit

Permalink
Merge branch 'v3x-develop' of https://github.com/tonyofrancis/Fetch i…
Browse files Browse the repository at this point in the history
…nto v3x-develop
  • Loading branch information
tonyofrancis committed Dec 2, 2024
2 parents f1b9519 + 0477fce commit 07e3969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions fetch2/src/main/java/com/tonyodev/fetch2/RequestInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ open class RequestInfo : Serializable {

/**
* Action used by Fetch when enqueuing a request and a previous request with the
* same file is already being managed. Default EnqueueAction.REPLACE_EXISTING
* which will replaces the existing request.
* same file is already being managed. Default is [EnqueueAction.UPDATE_ACCORDINGLY].
* */
var enqueueAction = defaultEnqueueAction

Expand Down Expand Up @@ -118,4 +117,4 @@ open class RequestInfo : Serializable {
"autoRetryMaxAttempts=$autoRetryMaxAttempts, extras=$extras)"
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class ParallelFileDownloaderImpl(private val initialDownload: Download,
downloadBlock.downloadedBytes = fileSlice.downloaded
downloadBlock.startByte = fileSlice.startBytes
downloadBlock.endByte = fileSlice.endBytes
val downloadRequest = getRequestForDownload(download = downloadInfo, rangeStart = fileSlice.startBytes + fileSlice.downloaded, segment = fileSlice.position + 1)
val downloadRequest = getRequestForDownload(download = downloadInfo, rangeStart = fileSlice.startBytes + fileSlice.downloaded, rangeEnd = fileSlice.endBytes, segment = fileSlice.position + 1)
var downloadResponse: Downloader.Response? = null
var saveRandomAccessFile: RandomAccessFile? = null
try {
Expand Down

0 comments on commit 07e3969

Please sign in to comment.