Commit graph

86 commits

Author SHA1 Message Date
Pierre Rudloff
7e2afd8221 Stop using a singleton for Config (#298) 2020-10-17 22:07:42 +02:00
bellington3
83863bd66c
Provide config toggle to disable the 'convert seek' function (#311)
* Provide config toggle to disable the 'convert seek' function in the frontend

* Add convertSeek config option to config.example

* Only send from/to if convertSeek is activated
2020-10-17 14:14:36 +02:00
bellington3
2e8350ce1a
Provide config toggle to set 'audio' conversion on as default (#310)
* Provide config toggle to set 'audio' conversion on as default

* Fix git cherry pick mistake

* Update templates/index.tpl

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>

* Add default audio config option to config.example

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>
2020-09-30 00:07:20 +02:00
Pierre Rudloff
8d15fbdda2 Lint 2020-09-27 16:06:49 +02:00
Pierre Rudloff
280618bb6b Use a factory to Config and LocaleManager (see #298) 2020-07-15 23:05:41 +02:00
Pierre Rudloff
683a19b0fb Remove references to avconv
Most distributions now use ffmpeg instead
2020-06-22 23:26:47 +02:00
Pierre Rudloff
f90a08e89c Stop installing ffmpeg and phantomjs with Composer
It is convenient but this a the job of the OS package manager
2020-06-22 23:21:22 +02:00
Pierre Rudloff
251fbe48ca Add generator meta with the current version 2020-06-21 15:51:28 +02:00
Pierre Rudloff
5c2823e3f1 Move Video class to a separate library
+ improve error handling
+ youtube-dl update
2020-06-21 15:12:03 +02:00
Pierre Rudloff
672a1a9754 Disable debug mode if dev dependencies are not installed 2020-06-20 14:14:38 +02:00
Pierre Rudloff
29756cf290 Add fallback to bestvideo and worstvideo (fixes #288) 2020-06-20 13:34:46 +02:00
Pierre Rudloff
689264cb35 Fix typo 2020-05-15 21:18:01 +02:00
Pierre Rudloff
6adc1df213 phpstan update
Better typying
2020-05-13 22:28:05 +02:00
Pierre Rudloff
71d49ad74f Lint 2020-05-13 21:18:32 +02:00
daCaPo
e2d284399a Switch from rg3/youtube-dl to ytdl-org/youtube-dl 2020-03-19 10:12:18 +01:00
Pierre Rudloff
09bbe3c196 fixup! Upgrade jawira/case-converter (fixes #262) 2020-02-23 17:30:34 +01:00
Pierre Rudloff
0c18535ac1 Useless parameter 2020-02-23 17:26:21 +01:00
Pierre Rudloff
cc55fabe14 Remove remaining gettext functions 2019-11-29 22:56:41 +01:00
Pierre Rudloff
a5bd827d21 Switch to symfony/translation for translations (#250) 2019-11-27 23:15:49 +01:00
Pierre Rudloff
0b1ce90f47 New debug option 2019-11-27 21:41:15 +01:00
Pierre Rudloff
8521b03cc9 Allow every config options to be set with environment variables 2019-11-10 18:14:15 +01:00
Pierre Rudloff
44bf858c35 style(phpcs): Switch to PSR-12
https://www.php-fig.org/psr/psr-12/
2019-10-03 21:24:12 +02:00
Pierre Rudloff
dcf65cadb0 fix: Make sure array_combine returns an array 2019-06-17 23:19:18 +02:00
Pierre Rudloff
d35801d9a0 fixup! feat: Make generic formats dynamic 2019-05-08 19:55:18 +02:00
Pierre Rudloff
43d5cc1dbb feat: Make generic formats dynamic
See #223
2019-05-08 19:49:18 +02:00
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