(trunk web) DRY up requested torrent fields

This just so happens to fix 2307. recheckProgress was missing
from the inital field request.
This commit is contained in:
Kevin Glowacz
2009-08-07 00:39:07 +00:00
parent 5018a1b0d2
commit 192365d4f9
2 changed files with 10 additions and 16 deletions

View File

@@ -27,6 +27,14 @@ Torrent._ErrTrackerWarning = 1;
Torrent._ErrTrackerError = 2;
Torrent._ErrLocalError = 3;
Torrent._StaticFields = [ 'addedDate', 'announceURL', 'comment', 'creator',
'dateCreated', 'hashString', 'id', 'isPrivate', 'name', 'totalSize' ]
Torrent._DynamicFields = [ 'downloadedEver', 'error', 'errorString', 'eta',
'haveUnchecked', 'haveValid', 'leechers', 'leftUntilDone', 'peersConnected',
'peersGettingFromUs', 'peersSendingToUs', 'rateDownload', 'rateUpload',
'recheckProgress', 'seeders', 'sizeWhenDone', 'status', 'swarmSpeed',
'uploadedEver', 'uploadRatio', 'seedRatioLimit', 'seedRatioMode', 'downloadDir' ]
Torrent.prototype =
{
/*