Commit Graph

61 Commits

Author SHA1 Message Date
Pierre Rudloff 5e9768e0e7 fix: Validate config only after the options have been set
To avoid an exception when default options are not valid but the new options are.
2019-04-28 15:52:01 +02:00
Pierre Rudloff 06a631c892 fixup! refactor: New Video class 2019-04-21 18:35:24 +02:00
Pierre Rudloff 4c9af8ad1d refactor: New Video class
The news class provides a cleaner object-oriented logic

BREAKING CHANGE: The VideoDownload class has been removed and the Config constructor is now private
2019-04-21 18:30:02 +02:00
Pierre Rudloff 5835bd67a5 refactor(phpstan): Various code improvements 2019-03-30 18:21:45 +01:00
Pierre Rudloff 9322bd5f14 style(StyleCI): Lint PHP 2019-01-06 17:00:12 +01:00
Pierre Rudloff c6cf05f8ec refactor: Move app name to a config variable
See #205
2019-01-06 16:59:16 +01:00
Pierre Rudloff fb90545d92 feat: Add STREAM environment variable so stream mode can be enabled on Heroku
See #178
2018-07-06 10:36:53 +02:00
Pierre Rudloff 647eed9db0 fix: Run youtube-dl with --no-playlist
Fixes #172
2018-05-23 21:43:34 +02:00
Pierre Rudloff 04fe43a1ca style: Declare imported classes at the top of the file 2018-02-05 17:16:41 +01:00
Pierre Rudloff 397bbf96ff style: Lint
Changes suggested by StyleCI
2018-01-25 15:13:13 +01:00
Pierre Rudloff e36e98e47a feat: New phantomjsDir option
This is used by the openload extractor

We also add to update youtube-dl to 2018.01.21 in order for the extractor to work correctly.
Fixes #146
2018-01-25 15:10:16 +01:00
Pierre Rudloff 4972c8ab8e feat: Add a new convertAdvanced option
It allows user to convert videos to several other audio/video formats

Fixes #148
2018-01-24 23:31:21 +01:00
Pierre Rudloff ed533da6d4 New environment variable: AUDIO_BITRATE
Refactor environment variables code
2018-01-06 18:07:24 +01:00
Pierre Rudloff 9a7ab89286 Remove outdated list of options 2018-01-06 17:46:49 +01:00
Pierre Rudloff f8c8935b4c Use ffmpeg instead of rtmpdump 2017-12-23 15:14:43 +01:00
Pierre Rudloff 8c9c35b673 Lint 2017-12-09 23:57:21 +01:00
Pierre Rudloff 959b141282 Add a setting that controls ffmpeg verbosity
Don't display ffmpeg errors in tests
2017-12-09 23:16:48 +01:00
Pierre Rudloff 600c8757e9 Lint 2017-11-10 23:52:04 +01:00
Pierre Rudloff fd2a4d8745 Add an option to set the MP3 bitrate when converting (fixes #113) 2017-11-10 23:50:17 +01:00
Pierre Rudloff 0a66dce2b8 More test coverage
Run youtube-dl with --restrict-filenames in order to avoid issues when testing against different locales
2017-05-31 00:48:50 +02:00
Pierre Rudloff f9203706f7 Cleanup root folder (fixes #110) 2017-05-15 07:25:14 +02:00
Pierre Rudloff 6651b45545 Use --flat-playlist to get playlists more efficiently 2017-04-28 14:43:20 +02:00
Pierre Rudloff 5180577b99 Ignore errors in playlists
(see https://github.com/rg3/youtube-dl/issues/12835)
2017-04-25 14:08:29 +02:00
Pierre Rudloff 43cbd4f6fe Cleanup playlists 2017-04-25 02:20:15 +02:00
Pierre Rudloff e6bbe54474 New remux feature (fixes #103) 2017-04-25 00:40:24 +02:00
Pierre Rudloff b80b9c7b2e Remove dependency on curl (fixes #105)
avconv/ffmpeg now downloads the video directly when converting
2017-04-24 19:16:38 +02:00
Pierre Rudloff e4f061e6c3 Allow empty config filename (= default) 2017-04-24 17:56:07 +02:00
Pierre Rudloff f309fc7033 Lint 2017-01-16 12:11:37 +01:00
Pierre Rudloff 4e1c1ca953 Add a stream parameter in config (fixes #24 and #39) 2017-01-16 12:02:21 +01:00
Pierre Rudloff 8e6c33c260 Merge branch 'develop' into feature/stream
Conflicts:
	composer.lock
2017-01-16 11:06:39 +01:00
Pierre Rudloff 3a1d0c4bc7 Lint 2017-01-10 23:39:58 +01:00
Pierre Rudloff 9f112c15b9 Add an uglyUrls option that disables URL rewriting (fixes #88) 2017-01-10 23:37:29 +01:00
Pierre Rudloff 3f96adb255 Lint 2016-12-26 15:53:03 +01:00
Pierre Rudloff 28a8addbf1 Experimental support for M3U streams 2016-12-26 15:50:26 +01:00
Pierre Rudloff 02e58c239f Allow Python to be set from environment variable 2016-12-22 13:46:31 +01:00
Pierre Rudloff d4f5f93c2d Lint 2016-12-05 13:12:27 +01:00
Pierre Rudloff a3dee17b2a Move YAML parsing to Config::getInstance()
Make Config::__construct() public
2016-10-18 09:54:08 +02:00
Pierre Rudloff 1b5054159c Cast bool because getenv always returns string 2016-10-10 21:30:07 +02:00
Pierre Rudloff 13c3366e9d Applied fixes from StyleCI 2016-09-07 22:28:28 +00:00
Pierre Rudloff 6df1eccb9e Missing docs 2016-09-06 00:36:47 +02:00
Pierre Rudloff 96a98ae846 Don't concatenate in function declaration 2016-08-19 01:13:51 +02:00
Pierre Rudloff 1400f3e86a Use separate config file for tests 2016-08-19 01:07:51 +02:00
Pierre Rudloff d414e67d31 Cleanup doc 2016-08-01 13:29:13 +02:00
Pierre Rudloff 37c223638d Add rtmp tests 2016-07-30 14:01:00 +02:00
Pierre Rudloff 782d4e124e Destroy Config instance after each test 2016-07-30 12:40:49 +02:00
Pierre Rudloff ae241a9812 curl_params should never be null (fixes #62) 2016-07-27 13:11:38 +02:00
Pierre Rudloff 57a1674f4b Use local rtmpdump 2016-04-12 21:13:43 +02:00
Pierre Rudloff b787b6d3a2 Use ProcessBuilder to create commands
Fix rtmp audio
2016-04-12 11:49:50 +02:00
Pierre Rudloff 724f3bb31a Download only one file 2016-04-11 22:41:25 +02:00
Pierre Rudloff f7f0a7b7f4 Use ProcessBuilder to build commands (fixes #51) 2016-04-08 19:37:59 +02:00