Size length, resuming download, Range header support #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds some notable changes.
End-user
File size support
When downloading the firmware, SamFetch now sends the max file size, so when downloading the firmware with download clients or with browser, it will now display a progress bar and a percent.
Resuming download
Now pausing and resuming download won't re-download the same file again from zero.
Internal
The
Keyholder
class has replaced with newSession
class along with read-only properties for values that should not be changed.CSC list is now served in a Python file instead of a separate JSON file.
All endpoints are marked as
asynchronous
.Reading the incoming data from Kies servers has moved into a
KiesData
class, now it is more easy to get a value from data.Instead of writing like this:
data["FUSMsg"]["FUSBody"]["Put"]["DEVICE_MODEL_DISPLAYNAME"]["Data"]
It can be typed as:
KiesData.body["DEVICE_MODEL_DISPLAYNAME"]
/api/binary
endpoint now handlesRange
headers (both start-end) and returnsContent-Range
header.Closes #5 and #4