Commit graph

537 commits

Author SHA1 Message Date
Javier López
7ba295efad Non interactive koel:init (#886)
* Use ADMIN_* variables if available to create the admin account

* Add APP_MEDIA_PATH for media directory

* Use the standard --no-interaction flag to koel:init

* Undo variable aligment and code formatting

* Prefer early return over else, add new line before return statements

* Some fixes
2019-01-01 12:53:20 +01:00
Phan An
ab4f2210d1
API doc (#872)
* Add the API documentation

* Apply fixes from StyleCI (#871)
2018-12-09 22:24:43 +01:00
Phan An
d58b791c37 Allow smart playlist creation 2018-11-25 22:21:46 +01:00
Phan An
d45948e1bd Revise the smart playlist rule 2018-11-18 22:50:15 +01:00
Phan An
d088561e06
Add "Smart Playlist" backend logics (#849)
This commit prepares the backend for the "Smart Playlist" feature.
2018-11-04 00:25:08 +01:00
Phan An
6f0db1620f
Add "Recently Played" playlist (#839)
* Add "Recently Played" playlist

* Apply fixes from StyleCI (#838)
2018-10-20 23:46:12 +02:00
Phan An
ee6ac687c4
Refactor the observers (#836) 2018-10-19 16:33:04 +02:00
Phan An
1c26d6bb66
Upgrade and fix getID3 lyrics tag issue (#835) 2018-10-19 16:32:16 +02:00
Phan An
c5f5a67789
Fix error with cover file (#823)
* Fix error with cover file

* Apply fixes from StyleCI (#822)
2018-10-06 12:44:25 +02:00
Phan An
1497450768 Remove cors package 2018-09-04 15:15:16 +07:00
Phan An
3313cd1a1d
Apply fixes from StyleCI (#804) 2018-09-04 13:26:02 +07:00
Phan An
096eb7e610 Remove over-engineered service 2018-09-04 13:25:24 +07:00
Phan An
4b8153e503 Fix parameter type 2018-09-04 13:09:52 +07:00
Phan An
5102e75698
Apply fixes from StyleCI (#803) 2018-09-04 12:43:12 +07:00
Phan An
140de34615 Some tweaks and fixes for sync cmd 2018-09-04 12:42:49 +07:00
Phan An
373870fefb Add a UserPreferenceService 2018-09-04 12:34:02 +07:00
Phan An
0f9bb32956 Refactor Lastfm's disconnect 2018-09-04 09:25:34 +07:00
Phan An
5c870ee254 Refactor Lastfm's connect 2018-09-04 09:24:29 +07:00
Phan An
47480ef49d
Apply fixes from StyleCI (#802) 2018-09-03 20:15:36 +07:00
Phan An
efcb6757d2 Fix type hint 2018-09-03 20:14:55 +07:00
Phan An
24cff9c2a8
Apply fixes from StyleCI (#801) 2018-09-03 20:13:54 +07:00
Phan An
5a4a6367be Fix type hint 2018-09-03 20:13:24 +07:00
Phan An
368d7ab484
Apply fixes from StyleCI (#800) 2018-09-03 19:42:37 +07:00
Phan An
a57fe76dfe Fix some more advanced errors reported by PHPStan 2018-09-03 19:42:14 +07:00
Phan An
40d4174d04
Apply fixes from StyleCI (#799) 2018-08-31 20:47:45 +07:00
Phan An
d88dd79f15 Fix basic errors detected by PHPStan 2018-08-31 20:47:15 +07:00
Phan An
c4beca787b Assert that version is cached 2018-08-30 12:42:47 +07:00
Phan An
b91d478fdf
Apply fixes from StyleCI (#798) 2018-08-30 12:37:24 +07:00
Phan An
351efe4092 Move version checking logic to a service 2018-08-30 12:37:03 +07:00
Phan An
b75d924e22 Fix parameter type 2018-08-30 10:26:18 +07:00
Phan An
06b7f7f5ca
Apply fixes from StyleCI (#797) 2018-08-30 10:16:40 +07:00
Phan An
3b2f6b9d1c Fix type hint 2018-08-30 10:16:21 +07:00
Phan An
453fb76c5d Refactor and fix requests 2018-08-30 10:11:47 +07:00
Phan An
86cd0fbb4f
Apply fixes from StyleCI (#796) 2018-08-30 09:53:39 +07:00
Phan An
37ec4aaa6f Use a proper package for php streamer 2018-08-30 09:53:18 +07:00
Phan An
2349a66a31 Refactor php streamer 2018-08-30 09:45:48 +07:00
Phan An
6eae3b53a2 Service configs can be null 2018-08-29 17:36:05 +07:00
Phan An
8638c229a8 Fix the error with S3Client being null 2018-08-29 17:18:56 +07:00
Phan An
9222af21e8
Apply fixes from StyleCI (#794) 2018-08-29 11:54:33 +02:00
Phan An
94f56648c2 Use a package to handle CORS 2018-08-29 16:54:13 +07:00
Phan An
fe34592e66
Apply fixes from StyleCI (#793) 2018-08-29 11:42:11 +02:00
Phan An
1558062428 Rewrite the file synchronization handling logic 2018-08-29 16:41:42 +07:00
Phan An
a31664adf7 Fix get preferences error 2018-08-29 15:01:53 +07:00
Phan An
ca2e737554 Use observers for model events 2018-08-29 14:58:59 +07:00
Phan An
3825452658
Apply fixes from StyleCI (#790) 2018-08-29 09:07:44 +02:00
Phan An
b227ece517 Refactor Lastfm and iTunes services 2018-08-29 14:05:24 +07:00
Phan An
0ad670ffff Use repositories 2018-08-29 13:30:39 +07:00
Phan An
bf1d158c90 Refactor S3 2018-08-29 13:15:24 +07:00
Phan An
3daa79afce Autoload command 2018-08-29 13:15:24 +07:00
Phan An
ffa05696c8 Upgrade to Larave 5.5 and PHP 7 2018-08-29 13:15:23 +07:00
Phan An
20282ed633 Use repositories 2018-08-29 13:15:11 +07:00
Phan An
f4ca7cf09f Refactor S3 2018-08-29 11:06:17 +07:00
Phan An
3473a12d44 Autoload command 2018-08-24 17:34:06 +02:00
Phan An
1dd5457084 Upgrade to Larave 5.5 and PHP 7 2018-08-24 17:27:19 +02:00
Phan An
3ab55d438b
Apply fixes from StyleCI (#788) 2018-08-23 08:58:43 +02:00
Phan An
02d36c692e Refactor InitCommand 2018-08-23 08:58:22 +02:00
Phan An
6a2a2263fa
Apply fixes from StyleCI (#786) 2018-08-22 22:25:23 +02:00
Phan An
a340a64748 Better download tests 2018-08-22 22:25:01 +02:00
Phan An
1be4678b25 DI for ProfileController 2018-08-22 21:46:36 +02:00
Phan An
61bc21c303 Better tests for User Controller 2018-08-22 21:40:04 +02:00
Phan An
6cadfc5ac3 Tests for streamer factory 2018-08-22 21:14:28 +02:00
Phan An
eed836bcb9
Apply fixes from StyleCI (#784) 2018-08-22 19:59:36 +02:00
Phan An
7c7693179d Refactor streamers 2018-08-22 19:59:14 +02:00
Phan An
040afa393d Remove leftover facades 2018-08-20 08:26:18 +02:00
Phan An
466cfdcd9f Remove Media service provider 2018-08-19 23:21:41 +02:00
Phan An
f82f1f42ad Remove Lastfm service provider 2018-08-19 23:19:42 +02:00
Phan An
86915c9280
Apply fixes from StyleCI (#782) 2018-08-19 23:17:24 +02:00
Phan An
8f7654a220 Refactor scrobble 2018-08-19 23:17:05 +02:00
Phan An
49daef32ba
Apply fixes from StyleCI (#781) 2018-08-19 23:03:21 +02:00
Phan An
2c7b6765d2 Rename init cmd and make it DI 2018-08-19 23:03:02 +02:00
Phan An
a96bd3e326 Add test for GenerateJWTSecretCommand 2018-08-19 23:03:02 +02:00
Phan An
f087dc71a2
Apply fixes from StyleCI (#780) 2018-08-19 18:05:54 +02:00
Phan An
69d68727b9 Rewrite Lastfm tests 2018-08-19 18:05:10 +02:00
Phan An
5cf19b09aa
Apply fixes from StyleCI (#779) 2018-08-19 17:26:52 +02:00
Phan An
f3887e6276 Rewrite Sync command 2018-08-19 17:26:34 +02:00
Phan An
a837432a4e Use proper DI for cache service 2018-08-19 16:58:14 +02:00
Phan An
1c76ff6d76 Use a service for iTunes 2018-08-19 16:40:25 +02:00
Phan An
6181041331
Apply fixes from StyleCI (#778) 2018-08-19 13:13:29 +02:00
Phan An
67357316bc Big revamp for lastfm and youtube services 2018-08-19 13:13:08 +02:00
Phan An
d4d2b0aff3
Apply fixes from StyleCI (#777) 2018-08-19 11:06:59 +02:00
Phan An
5fbec01c50 Big revamp for artist and album info 2018-08-19 11:06:31 +02:00
Phan An
cedb9f9922
Apply fixes from StyleCI (#776) 2018-08-18 15:20:02 +02:00
Phan An
4fc5117509 Use a service for media info 2018-08-18 15:19:40 +02:00
Phan An
1d5c8e84b6 Use a service for Interaction 2018-08-18 14:27:44 +02:00
Phan An
181357f3de Rename Download service 2018-08-18 14:27:17 +02:00
Phan An
f4c00abe02 Use DI in Download controllers 2018-08-18 13:53:15 +02:00
Phan An
168f70481c Fix download issues 2018-08-18 12:35:42 +02:00
N.Yanbe
064d6f8615 Fix AWS S3 related issues. (#757)
* Avoid an error from MySQL, "Column cannot be null".

Similar to this issue: https://stackoverflow.com/questions/43860634/laravel-5-4-upgrade-integrity-constraint-violation-column-cannot-be-null

* Clears the media cache after storing a new song.
2018-06-16 11:29:41 +02:00
Phan An
1a8ab06db7 Revert changes to lyrics tag 2018-04-14 23:16:04 +02:00
Phan An
b1165c2f0f Fix broken PHPStream logic (fixes #707) 2018-04-14 23:03:04 +02:00
Phan An
77812d0070 Fix lyric tag (closes #716) 2018-04-14 22:59:45 +02:00
Phan An
e11e9d1392 Optimize PHPStreamer (closes #708) 2018-04-14 22:46:08 +02:00
Phan An
cdf9faafbf Use correct Last-Modified date (fixes #709) 2018-04-14 22:36:41 +02:00
Phan An
f472ff9ac8 Fix tests 2018-02-05 09:52:14 +01:00
Phan An
4ad5020b58 Fix image stealing logic 2018-02-04 16:53:40 +01:00
Phan An
cd67609c9e Bump version 2018-01-28 22:24:56 +01:00
Yohann Leon
024c87461a Dabase driver typo for koel:init (#698) 2017-12-11 21:50:32 +01:00
Phan An
1b8bd96b9b
Apply fixes from StyleCI (#697) 2017-12-10 22:22:12 +01:00
Phan An
c276d1ab04 Fix song playing request 2017-12-10 22:21:54 +01:00
Phan An
bf3ca591d1
Apply fixes from StyleCI (#694) 2017-12-09 21:10:55 +01:00
Phan An
bca8668ace Refactor and use extending request classes 2017-12-09 19:34:27 +01:00
Phan An
3270879031 Refactor File model 2017-12-09 03:24:09 +01:00
Phan An
2976b66fca Bump version 2017-12-03 18:24:05 +01:00
Phan An
71fa6305bf
Apply fixes from StyleCI (#691) 2017-12-03 17:54:34 +01:00
Phan An
e1b68cc53f Revamp the koel:init command 2017-12-03 17:54:11 +01:00
Phan An
edc33f99ae Set up the media path during koel:sync 2017-12-03 13:02:56 +01:00
Fiete Börner
4298774e7f implement simple multi disc support (#687)
* add disc field to songs table via migration

* add disc field to song model

* collect disc information in file sync process

* sort song list by disc and track number in album context

* check the disc field in file test

* remove nullable flag from disc field in add_disc_into_songs migration

* fix php code style issues

* fix js code style

* fix sort usage in song-list

* sort songs by inserting into queue by clicking the album/artist item play button (album_id, disc, track)

* add disc to sync tags in media model
2017-12-03 11:02:31 +01:00
Phan An
8505539145 Merge branch 'master' of github.com:phanan/koel 2017-12-02 17:37:40 +01:00
Phan An
4246bcb45c Only consider an album “compiled” if albumartist != artist 2017-12-02 17:22:20 +01:00
Phan An
9987443795
Apply fixes from StyleCI (#690) 2017-12-02 17:07:53 +01:00
Phan An
d949ea9e60 Load (and parse) playlist content on demand 2017-12-02 17:05:40 +01:00
Phan An
3e3004a904 Fix the bug with lyrics fails to be read 2017-11-08 23:39:26 +01:00
Phan An
cc975996af Use file name for song title if such is missing 2017-11-08 22:35:06 +01:00
Phan An
1919df1e20
Apply fixes from StyleCI (#678) 2017-11-08 14:11:45 +01:00
Fiete Börner
56799c5ffa enable foreign keys for sqlite connections (#672)
* enable foreign keys for sqlite connections

this code block enables the on delete cascade functionality for sqlite
connections

* fix code styling issues

* import the sqlite connnection class for consistency
2017-10-22 16:02:43 +01:00
Phan An
537cff716c Apply fixes from StyleCI (#644) 2017-08-27 16:53:50 +01:00
Phan An
dc7c6bec45 Refactor the remote controller into its own page 2017-08-27 16:53:17 +01:00
Phan An
ee227865be Apply fixes from StyleCI (#640) 2017-08-21 22:05:03 +01:00
Phan An
8904e4dcb6 Merge branch 'master' of github.com:phanan/koel 2017-08-21 22:04:44 +01:00
Phan An
c95d74d487 Add a memory limit setting 2017-08-21 21:45:01 +01:00
Phan An
0f1be0ae98 Refactor YouTube cache 2017-08-19 17:09:00 +01:00
Phan An
8c71bd4d04 Apply fixes from StyleCI (#639) 2017-08-19 16:28:01 +01:00
Phan An
0ebf07021c Small best practice fixes 2017-08-06 10:50:52 +01:00
Phan An
f827c63819 Make controllers slim 2017-08-06 10:43:59 +01:00
Phan An
7ec5cfb2af Apply fixes from StyleCI (#633) 2017-08-05 23:27:41 +01:00
Phan An
f344b4c3fa Make tests green 2017-08-05 23:27:26 +01:00
Phan An
4e273639bd Refactor album cover cache function 2017-08-05 22:58:50 +01:00
Phan An
d40a5ff751 Refactor Koel version cache function 2017-08-05 22:55:43 +01:00
Phan An
e16a500510 Refactor media cache 2017-08-05 22:51:59 +01:00
Phan An
56cbb4f8b3 Apply fixes from StyleCI (#632) 2017-08-05 19:55:53 +01:00
Phan An
39e837713f Refactor tests 2017-08-05 19:55:02 +01:00
Phan An
1560cf99d0 Add User unit tests 2017-08-05 18:44:38 +01:00
Phan An
8bb547cb4d Add tests for SongZipArchive 2017-08-05 18:28:28 +01:00
Phan An
a8f98b2377 Refactor tests 2017-08-05 17:56:11 +01:00
Phan An
9cd1e86533 Complete Setting tests 2017-08-05 17:32:16 +01:00
Phan An
fcf6c8a700 Finish Interaction unit test 2017-06-24 21:46:55 +01:00
Phan An
53c4bedf7b Remove Feature test for Artist, as it actually is Unit 2017-06-10 16:17:46 +01:00
Phan An
14b6c7154b Finish unit tests for Song 2017-06-10 16:17:46 +01:00
Phan An
6e38f96eb2 Finish unit tests for Artist and Album 2017-06-10 14:25:30 +01:00
Phan An
f448b0e8e3 Merge branch 'master' into test 2017-06-10 12:36:55 +01:00
Phan An
e96c4d5073 Remove redundant code 2017-06-10 12:36:32 +01:00
Phan An
56b5db9487 Add unit test for Album model 2017-06-10 01:40:44 +01:00
Phan An
3fccfa8963 Fix is_various attribute on Artist model 2017-06-10 00:29:01 +01:00
Phan An
03baef25bd Fix hidden preference bug 2017-06-04 09:34:21 +01:00
Phan An
c9ec0406ff Apply fixes from StyleCI (#611) 2017-06-04 02:31:59 +01:00
Phan An
259561ce74 Merge branch 'master' of github.com:phanan/koel 2017-06-04 02:31:39 +01:00
Phan An
796088944d Add more refactorings 2017-06-04 02:30:45 +01:00
Phan An
6c9e707f8b Apply fixes from StyleCI (#610) 2017-06-04 02:12:24 +01:00
Phan An
caf13fbac0 Refactor Download service 2017-06-04 02:12:08 +01:00
Phan An
c706391422 Apply fixes from StyleCI (#609) 2017-06-04 00:22:12 +01:00