diff --git a/app.js b/app.js index 2267b75..52775a6 100644 --- a/app.js +++ b/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; diff --git a/index.html b/index.html index bfb5524..cd9c8e9 100644 --- a/index.html +++ b/index.html @@ -31,8 +31,6 @@