From 77785173bf79b3b11ba8106c1a636a91533405bf Mon Sep 17 00:00:00 2001 From: Nicholas Orr Date: Wed, 29 Apr 2015 01:31:04 +0800 Subject: [PATCH] Add direct URL to files Ability to download files directly via pre-configured webserver. Simply supply the base URL and links will be added to each file in the details section. --- configuration.js | 3 ++- css/download.css | 3 +++ index.html | 21 ++++++++++++++++++++- js/ctrls/main.js | 8 ++++++++ js/filters/url.js | 4 ++++ js/init.js | 2 +- js/services/rpc/rpc.js | 3 +++ 7 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 js/filters/url.js diff --git a/configuration.js b/configuration.js index 8d1d9a9..e845075 100644 --- a/configuration.js +++ b/configuration.js @@ -12,7 +12,8 @@ angular /*-----------------------------*/ // user: '*YOUR_USERNAME*', // pass: '*YOUR_SECRET_PASS*' - } + }, + directURL: '' // If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured }) .constant('$enable', { diff --git a/css/download.css b/css/download.css index 2f42954..6b9c24d 100755 --- a/css/download.css +++ b/css/download.css @@ -100,3 +100,6 @@ overflow: hidden; text-overflow: ellipsis; } +.download-files a { + color: #fff; +} diff --git a/index.html b/index.html index b5a3da8..bf7d97c 100755 --- a/index.html +++ b/index.html @@ -44,6 +44,7 @@ + @@ -584,7 +585,10 @@
  •   {{download.dir}}
  • @@ -988,6 +992,21 @@ http://ex1.com/f2.mp4 http://ex2.com/f2.mp4 --out=file2.mp4
    + +
    + Direct Download +
    + +
    + +

    + If supplied, links will be created to enable direct download from the + aria2 server, requires appropriate webserver to be configured +

    +
    +
    +