diff --git a/api.php b/api.php index 1f8fecd..745b45a 100644 --- a/api.php +++ b/api.php @@ -10,7 +10,8 @@ * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ -require_once 'config.php'; +require_once 'config.example.php'; +@include_once 'config.php'; require_once 'common.php'; require_once 'download.php'; if (isset($_GET["url"])) { diff --git a/config.example.php b/config.example.php index 9d703bd..afdc8f5 100644 --- a/config.example.php +++ b/config.example.php @@ -14,7 +14,7 @@ define('YOUTUBE_DL', './youtube-dl'); define('PYTHON', '/usr/bin/python'); define('PARAMS', '--no-playlist --no-warnings'); -define('CONVERT', true); +define('CONVERT', false); define('MAINTENANCE', false); define('DISABLED', false); ?> diff --git a/download.php b/download.php index 46657d5..b0ab7d4 100644 --- a/download.php +++ b/download.php @@ -11,7 +11,8 @@ * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ -require_once 'config.php'; +require_once 'config.example.php'; +@include_once 'config.php'; /** * PHP web interface for youtube-dl (http://rg3.github.com/youtube-dl/) * Main class diff --git a/extractors.php b/extractors.php index da73e0e..ca41de8 100644 --- a/extractors.php +++ b/extractors.php @@ -12,7 +12,8 @@ * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ -require_once 'config.php'; +require_once 'config.example.php'; +@include_once 'config.php'; require_once 'common.php'; require 'head.php'; ?> diff --git a/index.php b/index.php index e452db3..d7ba7c0 100644 --- a/index.php +++ b/index.php @@ -12,7 +12,8 @@ * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ -require_once 'config.php'; +require_once 'config.example.php'; +@include_once 'config.php'; require_once 'common.php'; require 'head.php'; ?> diff --git a/package.json b/package.json index fccd70e..f97e8c1 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,18 @@ { "name": "alltube", "version": "0.2.1", - "devDependencies": { - "grunt": "^0.4.5", - "grunt-contrib-cssmin": "^0.10.0", - "grunt-contrib-uglify": "^0.6.0", - "grunt-contrib-watch": "^0.6.1" + "dependencies": { + "grunt": "~0.4.5", + "grunt-cli": "~0.1.13", + "grunt-contrib-cssmin": "~0.10.0", + "grunt-contrib-uglify": "~0.6.0", + "grunt-contrib-watch": "~0.6.1" }, "repository": { "type": "git", "url": "https://github.com/Rudloff/alltube.git" + }, + "scripts": { + "postinstall": "./node_modules/grunt-cli/bin/grunt; curl https://yt-dl.org/downloads/2015.04.09/youtube-dl -o youtube-dl" } } diff --git a/youtube-dl b/youtube-dl new file mode 100644 index 0000000..5ef4f6c Binary files /dev/null and b/youtube-dl differ