Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
Keep the private property in encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
yashikno committed Jan 5, 2018
1 parent 8d18c6d commit 69020a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ function encodeTorrentFile (parsed) {

torrent['url-list'] = parsed.urlList || []

if (parsed.private !== undefined) {
torrent['private'] = parsed.private
}

if (parsed.created) {
torrent['creation date'] = (parsed.created.getTime() / 1000) | 0
}
Expand Down

0 comments on commit 69020a5

Please sign in to comment.