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

Commit

Permalink
Merge pull request #19 from nialv7/master
Browse files Browse the repository at this point in the history
Keep the private property in encoding
  • Loading branch information
feross authored Apr 13, 2018
2 parents 2c5703c + 69020a5 commit 17d7360
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 17d7360

Please sign in to comment.