Fixed downloading
This commit is contained in:
parent
f4d920a251
commit
c5705f65dd
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
client = new WebTorrent
|
client = new WebTorrent
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
|
||||||
app = angular.module 'bTorrent', [], ['$compileProvider','$locationProvider', ($compileProvider, $locationProvider) ->
|
app = angular.module 'bTorrent', [], ['$compileProvider','$locationProvider', ($compileProvider, $locationProvider) ->
|
||||||
$compileProvider.aHrefSanitizationWhitelist /^\s*(https?|magnet|blob|javascript):/
|
$compileProvider.aHrefSanitizationWhitelist /^\s*(https?|magnet|blob|javascript):/
|
||||||
$locationProvider.html5Mode(
|
$locationProvider.html5Mode(
|
||||||
|
@ -55,7 +54,7 @@ app.controller 'bTorrentCtrl', ['$scope','$http','$log','$location', ($scope, $h
|
||||||
return
|
return
|
||||||
|
|
||||||
$scope.fromInput = ->
|
$scope.fromInput = ->
|
||||||
if !$scope.torrentInput == ''
|
if $scope.torrentInput.length > 0
|
||||||
$scope.client.processing = true
|
$scope.client.processing = true
|
||||||
dbg 'Adding ' + $scope.torrentInput
|
dbg 'Adding ' + $scope.torrentInput
|
||||||
$scope.client.add $scope.torrentInput, $scope.onTorrent
|
$scope.client.add $scope.torrentInput, $scope.onTorrent
|
||||||
|
|
|
@ -57,7 +57,7 @@ html(ng-app='bTorrent', lang='en')
|
||||||
| {{torrent.length | pbytes}} in
|
| {{torrent.length | pbytes}} in
|
||||||
a(href='#', onclick='return false;', ng-click='toggleTorrent(torrent)') {{torrent.files.length}} files
|
a(href='#', onclick='return false;', ng-click='toggleTorrent(torrent)') {{torrent.files.length}} files
|
||||||
td(ng-hide='client.done()')
|
td(ng-hide='client.done()')
|
||||||
| {{torrent.downloaded | pbytes}}
|
| {{torrent.downloaded | pbytes}}
|
||||||
span.subInfo ({{torrent.pProgress}}%)
|
span.subInfo ({{torrent.pProgress}}%)
|
||||||
br
|
br
|
||||||
span.subInfo @ {{torrent.downloadSpeed() | pbytes}}/s
|
span.subInfo @ {{torrent.downloadSpeed() | pbytes}}/s
|
||||||
|
@ -83,7 +83,7 @@ html(ng-app='bTorrent', lang='en')
|
||||||
.row
|
.row
|
||||||
.two.columns.center
|
.two.columns.center
|
||||||
i.fa.fa-file
|
i.fa.fa-file
|
||||||
strong Files:
|
strong Files:
|
||||||
.ten.columns.fix-height
|
.ten.columns.fix-height
|
||||||
ul.no-margin
|
ul.no-margin
|
||||||
li(ng-repeat='file in torrent.files')
|
li(ng-repeat='file in torrent.files')
|
||||||
|
|
Loading…
Reference in a new issue