Removed external seeding
This commit is contained in:
parent
3d8c009e91
commit
7ef87be856
2 changed files with 1 additions and 15 deletions
14
app.js
14
app.js
|
@ -64,7 +64,7 @@ angular.module('bTorrent', [], function ($compileProvider, $locationProvider) {
|
|||
};
|
||||
$scope.uploadFile2 = function(elem) {
|
||||
$scope.client.processing = true;
|
||||
$scope.client.seed(elem.files, $scope.onSeed);
|
||||
$scope.client.seed(elem.files, $scope.onTorrent());
|
||||
};
|
||||
|
||||
$scope.fromInput = function() {
|
||||
|
@ -88,18 +88,6 @@ angular.module('bTorrent', [], function ($compileProvider, $locationProvider) {
|
|||
}
|
||||
};
|
||||
|
||||
$scope.onSeed = function(torrent) {
|
||||
if($scope.seedIt) {
|
||||
if(DEBUG) $log.debug("Seed it");
|
||||
$http.get("seedIt.php?hash=" + torrent.infoHash).then(function(response) {
|
||||
if(DEBUG) $log.debug("Sent to seeder!");
|
||||
}, function(response) {
|
||||
if(DEBUG) $log.debug("Error sending to seeder!");
|
||||
});
|
||||
}
|
||||
$scope.onTorrent(torrent);
|
||||
};
|
||||
|
||||
$scope.onTorrent = function(torrent) {
|
||||
$scope.client.processing = false;
|
||||
torrent.showFiles = false;
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
<div class="five columns u-pull-right">
|
||||
<input type="file" style="display: none;" id="fileUpload" onchange="angular.element(this).scope().uploadFile2(this)">
|
||||
<label class="u-pull-right">
|
||||
<input type="checkbox" ng-model="seedIt">
|
||||
<span class="label-body">Help me seed it (10MB Max)</span>
|
||||
<button class="button-primary" ng-click="uploadFile()" ><i class="fa fa-upload"></i> Seed a file</button>
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue