Commit graph

78 commits

Author SHA1 Message Date
Pierre Rudloff
e2560cd9cb Code cleanup 2020-10-19 22:29:30 +02:00
bellington3
c5298dd24b
Provide basePath support (#309)
* Provide basePath support

To be able to serve the application via a reverse proxy in a subfolder
smarty needs to be aware of the basepath if any.

* Provide basepath support via X-Forwarded headers

* Fix warnings

* Review adjustments

* Provide support X-Forwarded-Host header

* Use $uri in view factory directly

* Use middleware to set basepath from X-Forwarded-Path header

* Fix invalid type hint in RouterPathMiddleware

* Add "X-Forwarded-Host" to README
2020-10-19 22:18:03 +02:00
Pierre Rudloff
07f19a80f4 Improve fallback error handling 2020-10-18 13:20:06 +02:00
Pierre Rudloff
9becaeaabe Fix uglyUrls 2020-10-18 00:59:19 +02:00
Pierre Rudloff
b6b4dad2ec Custom 404 and 405 error pages 2020-07-15 23:17:23 +02:00
Pierre Rudloff
280618bb6b Use a factory to Config and LocaleManager (see #298) 2020-07-15 23:05:41 +02:00
Pierre Rudloff
96a75cbf14 Log youtube-dl and ffmpeg commands (fixes #297) 2020-07-15 22:52:38 +02:00
Pierre Rudloff
72e5e68274 Remove obsolete routes 2020-06-22 22:25:32 +02:00
Pierre Rudloff
4ef7a93dce Escape error message
Because of the "Maybe you have characters before an opening <?php tag?" error
2020-06-08 23:49:59 +02:00
Pierre Rudloff
6a19a1ddc1 Use the new Symfony error handler 2020-05-13 22:57:25 +02:00
Pierre Rudloff
b670b16ca2 Catch various exceptions on the index 2020-05-13 22:37:26 +02:00
Pierre Rudloff
6adc1df213 phpstan update
Better typying
2020-05-13 22:28:05 +02:00
Pierre Rudloff
ef493074d4 Refactor error controller 2019-12-02 22:04:14 +01:00
Pierre Rudloff
6fb1cbaa6c Add comments to index.php to make it easier to read 2019-11-28 01:04:07 +01:00
Pierre Rudloff
aabcee25f0 Custom fatal error handler 2019-11-27 23:49:01 +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
3e9a934f87 fix: fix /watch route 2019-10-19 22:06:30 +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
8f46166a9d fix: Wrong controller 2019-04-26 20:34:34 +02:00
Pierre Rudloff
bba2087a55 style(styleci): Lint 2019-04-22 17:04:59 +02:00
Pierre Rudloff
1387d836dc refactor: New Session class
So that session is shared between classes and does not get overwritten
2019-04-22 17:03:54 +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
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
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
b8b6180609 feat: Allow Youtube-like URLs
Fixes #184
2018-08-04 15:47:22 +02:00
Pierre Rudloff
74505cea57 feat: JSON API 2018-03-20 12:02:21 +01:00
Pierre Rudloff
04fe43a1ca style: Declare imported classes at the top of the file 2018-02-05 17:16:41 +01:00
Pierre Rudloff
2cfe90bd2d Display error when Smarty throws an exception (fixes #130) 2017-10-02 21:08:37 +02:00
Pierre Rudloff
3e13be702e Display an error if php-intl is not installed (fixes #120) 2017-10-02 20:53:12 +02:00
Pierre Rudloff
b4dd0aeb29 Basic locale switcher 2017-05-30 22:21:27 +02:00
Pierre Rudloff
68b2cca899 Detect user locale 2017-05-29 21:11:59 +02:00
Pierre Rudloff
de8c4525d9 New fr_FR locale 2017-05-29 19:28:42 +02:00
Pierre Rudloff
3fff849ea8 Merge branch 'master' of https://github.com/tony199555/alltube into feature/gettext
Conflicts:
	composer.json
	composer.lock
	templates/index.tpl
	templates/video.tpl
2017-05-29 19:01:20 +02:00
Unknown
e8d989a9f2 Fix syntax by styleci 2017-05-26 15:04:33 -07:00
Unknown
508c32e797 Use correct local code 2017-05-26 14:59:30 -07:00
Unknown
404935be05 Possible fix recommend by Rudloff 2017-05-26 11:38:34 -07:00
Pierre Rudloff
d7927fc442 Download Tar archives from playlists 2017-05-04 23:52:30 +02:00
Pierre Rudloff
0e7aaea9fc Move Smarty view creation to ViewFactory class 2017-04-26 00:50:19 +02:00
Pierre Rudloff
8aee9054a8 Allow custom cookie array in controller 2017-04-25 23:04:59 +02:00
Pierre Rudloff
5e09d8adc7 Remove JSON output as we don't use it anymore 2017-01-16 16:03:31 +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
d4f5f93c2d Lint 2016-12-05 13:12:27 +01:00
Pierre Rudloff
2d0860e42f Undefined variable 2016-10-26 17:16:17 +02:00
Pierre Rudloff
e34b01f2c4 Add support for password protected videos 2016-10-20 23:01:31 +02:00
Pierre Rudloff
7746d7d26a addSlimPlugins is deprecated 2016-10-10 21:34:38 +02:00
Pierre Rudloff
13c3366e9d Applied fixes from StyleCI 2016-09-07 22:28:28 +00:00