Commit graph

177 commits

Author SHA1 Message Date
Pierre Rudloff
6fc294afbe Use array_merge() instead of +=
To avoid overriding items
2020-10-17 15:09:34 +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
f9aab3c404 Lint 2020-09-27 19:56:19 +02:00
Pierre Rudloff
2aac009a1e Fix ControllerTest 2020-07-15 23:38:23 +02:00
Pierre Rudloff
96a75cbf14 Log youtube-dl and ffmpeg commands (fixes #297) 2020-07-15 22:52:38 +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
7a2c7b42fb Remove Windows test config file
We don't have a Windows CI anymore
2020-06-22 23:22:42 +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
1e9c9e96c5 Fix stream tests 2020-05-14 12:02:13 +02:00
Pierre Rudloff
338ecd8b17 Less strict Vimeo domain detection because it keeps changing 2020-05-14 11:15:44 +02:00
Pierre Rudloff
6adc1df213 phpstan update
Better typying
2020-05-13 22:28:05 +02:00
Pierre Rudloff
74db3b9ad0 Update guzzle to 6.5 2020-05-13 21:39:38 +02:00
Pierre Rudloff
bc695cfa15 Lint 2020-05-13 21:33:05 +02:00
Pierre Rudloff
43e6f9b25d Stop running tests on AppVeyor
Debugging tests on Windows is too much work
2019-11-30 14:55:16 +01:00
Pierre Rudloff
fea1cce2d4 Switch to phpunit 8 2019-11-30 14:09:12 +01:00
Pierre Rudloff
7772de5394 Fix tests (#250) 2019-11-28 00:04:05 +01:00
Pierre Rudloff
1cab9623e9 Do not run tests that download videos on CI
Travis get blacklisted by more and more services (Vimeo, Youtube, etc.)
2019-10-26 16:14:01 +02:00
Pierre Rudloff
2747f8ceac test(phpunit): remove broken URL from test 2019-10-16 23:12:07 +02: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
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
b91fe78dcd feat: Make streaming optional when stream mode is enabled
Closes #218
2019-04-28 00:36:14 +02:00
Pierre Rudloff
9313bc2230 test: Fix YoutubeStreamTest 2019-04-26 20:58:52 +02:00
Pierre Rudloff
7bf2510dd2 test(phpunit): Better tests for streams 2019-04-22 21:53:04 +02:00
Pierre Rudloff
d30614668b test(phpunit): Fix wrong @expectedException 2019-04-22 21:13:57 +02:00
Pierre Rudloff
e13404903b refactor: Move exceptions and streams to seperate namespaces 2019-04-22 21:06:05 +02:00
Pierre Rudloff
bba2087a55 style(styleci): Lint 2019-04-22 17:04:59 +02:00
Pierre Rudloff
25f33bba56 refactor: Split FrontController into multiple classes
Closes #177
2019-04-22 16:51:48 +02:00
Pierre Rudloff
1df06f7c22 refactor: Use route names that make more sense 2019-04-22 15:31:51 +02:00
Pierre Rudloff
5bae668652 test(phpunit): Fix tests that use convert mode 2019-04-21 23:27:36 +02:00
Pierre Rudloff
61cb73dc59 refactor: Fix some types and unused variables 2019-04-21 19:51:16 +02:00
Pierre Rudloff
d4e8e32cd6 test(phpunit): Disable testSetOptionsWithoutUpdate() on AppVeyor 2019-04-21 19:28:58 +02:00
Pierre Rudloff
28b99861c2 test(phpunit): Fix ConfigTest on Windows 2019-04-21 19:14:23 +02:00
Pierre Rudloff
4fa604eec3 test(phpunit): Fix ConfigTest setup 2019-04-21 18:56:08 +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
feb8998188 fixup! Typo 2019-04-21 09:21:24 +02:00
Pierre Rudloff
ece51117e6 We don't need to do that anymore 2019-04-21 01:05:12 +02:00
Pierre Rudloff
586f20adb4 style(styleci): Lint 2019-04-21 00:58:04 +02:00
Pierre Rudloff
f9bf3b8d47 refactor: Use a StreamInterface for PlaylistArchiveStream
It is much cleaner
2019-04-21 00:35:43 +02:00
Pierre Rudloff
ff95b93c20 fixup! ci(travis): Disable Twitter test on CI 2019-04-20 12:23:18 +02:00
Pierre Rudloff
f4654c7229 test(phpunit): Improve locale-related tests 2019-04-20 12:17:52 +02:00
Pierre Rudloff
12747ade59 ci(travis): Disable Twitter test on CI 2019-04-20 11:30:36 +02:00
Pierre Rudloff
4537b661e1 fix: Close playlist streams correctly 2019-04-20 00:37:49 +02:00
Pierre Rudloff
71200c80bc test(phpunit): Disable Vimeo tests on CI 2019-04-19 23:28:54 +02:00
Pierre Rudloff
62b353046f test(phpunit): Disable RTMP tests because the video we used is not available anymore 2019-01-15 11:25:49 +01:00
Pierre Rudloff
ff4ded2d5c test(phpunit): Fix Youtube tests
Some Youtube format was not available anymore
2018-09-18 19:01:14 +02:00
Pierre Rudloff
8c99cc6f03 test: Fix testGetFilename 2018-09-03 10:42:20 +02:00
Pierre Rudloff
86523fd44b style: Lint 2018-05-26 14:38:42 +02:00