Commit graph

191 commits

Author SHA1 Message Date
Pierre Rudloff
f2785bca03 Clear Smarty compiled templates before controller tests
In order to avoid permission errors
2020-12-17 22:30:19 +01:00
Pierre Rudloff
f2bef49ad6 fixup! Make sure locale is always set, even on first request 2020-11-21 14:38:37 +01:00
Pierre Rudloff
3d2b518cb4 Create a test container that we can use in any test 2020-10-22 22:48:47 +02:00
Pierre Rudloff
6bb577bcce Use default view variables 2020-10-22 00:45:09 +02:00
Pierre Rudloff
68f2255fa0 Lint 2020-10-21 23:07:12 +02:00
Pierre Rudloff
342b8c4a42 Use secure session cookies (fixes #321) 2020-10-21 23:04:29 +02:00
Pierre Rudloff
de8c5e5dc7 Convert SessionManager to a factory class 2020-10-21 22:48:05 +02:00
Pierre Rudloff
0a220d4d8e Move factory classes to a subfolder 2020-10-20 23:29:50 +02:00
Pierre Rudloff
123a6c5ad9 Move middleware to a subfolder 2020-10-20 23:17:22 +02:00
Pierre Rudloff
15636aa435 Stop using a singleton for LocaleManager (#298) 2020-10-17 22:36:03 +02:00
Pierre Rudloff
f5045b3ae7 Lint 2020-10-17 22:22:17 +02:00
Pierre Rudloff
651c5c3d90 Fix test
We now return a 403 status code when a password is needed
2020-10-17 22:13:28 +02:00
Pierre Rudloff
50ea02cf04 Format should be a string 2020-10-17 22:09:01 +02:00
Pierre Rudloff
7e2afd8221 Stop using a singleton for Config (#298) 2020-10-17 22:07:42 +02:00
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