Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release-0.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Jan 3, 2017
2 parents 7e079c7 + d6f851f commit b3fe973
Show file tree
Hide file tree
Showing 11 changed files with 181 additions and 95 deletions.
10 changes: 9 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ sudo apt-get install libav-tools curl
Create a dyno with the following buildpacks:

* `heroku/php`
* `https://github.com/heroku/heroku-buildpack-nodejs`
* `heroku/nodejs`
* `heroku/python`

You might also need to add the following config variables:

```env
CONVERT=1
PYTHON=/app/.heroku/python/bin/python
```

Then push the code to Heroku and it should work out of the box.

Expand Down
3 changes: 3 additions & 0 deletions classes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public function __construct(array $options)
if (getenv('CONVERT')) {
$this->convert = (bool) getenv('CONVERT');
}
if (getenv('PYTHON')) {
$this->python = getenv('PYTHON');
}
}

/**
Expand Down
3 changes: 3 additions & 0 deletions classes/VideoDownload.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ public function getAudioStream($url, $format, $password = null)
}

$video = $this->getJSON($url, $format, $password);
if (in_array($video->protocol, ['m3u8', 'm3u8_native'])) {
throw(new \Exception('Conversion of M3U8 files is not supported.'));
}

//Vimeo needs a correct user-agent
ini_set(
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "project",
"require": {
"smarty/smarty": "~3.1.29",
"slim/slim": "~3.6.0",
"slim/slim": "~3.7.0",
"mathmarques/smarty-view": "~1.1.0",
"symfony/yaml": "~3.2.0",
"symfony/process": "~3.2.0",
Expand All @@ -19,8 +19,9 @@
"squizlabs/php_codesniffer": "~2.7.0",
"phpunit/phpunit": "~5.7.2",
"ffmpeg/ffmpeg": "dev-release",
"rg3/youtube-dl": "~2016.09.08",
"rudloff/rtmpdump-bin": "~2.3"
"rg3/youtube-dl": "~2016.12.22",
"rudloff/rtmpdump-bin": "~2.3",
"heroku/heroku-buildpack-php": "*"
},
"extra": {
"paas": {
Expand All @@ -34,10 +35,10 @@
"type": "package",
"package": {
"name": "rg3/youtube-dl",
"version": "2016.09.08",
"version": "2016.12.22",
"dist": {
"type": "zip",
"url": "https://github.com/rg3/youtube-dl/archive/2016.12.18.zip"
"url": "https://github.com/rg3/youtube-dl/archive/2016.12.22.zip"
}
}
},
Expand Down
Loading

0 comments on commit b3fe973

Please sign in to comment.