mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 06:35:48 +03:00
[PR #27] [CLOSED] start downloading the largest file right away with select, matching peerflix #377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/asapach/peerflix-server/pull/27
Author: @ryanramage
Created: 3/3/2015
Status: ❌ Closed
Base:
master← Head:select-file📝 Commits (2)
0d6201dstart downloading the largest file right away with select, matching peerflixfcf65bfsimplify choosing the file to select📊 Changes
1 file changed (+8 additions, -0 deletions)
View changed files
📝
server/store.js(+8 -0)📄 Description
Peerflix uses file.select() to begin downloading the largest file when the engine is ready. This can be seen here:
https://github.com/mafintosh/peerflix/blob/master/index.js#L36-L48
Select is documented here
https://github.com/mafintosh/torrent-stream#fileselect
This changes the behaviour of peerflix-server, so if you don't want this, I can modify this pull request to have a feature switch that resides in the config file.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.