Commit graph

272 commits

Author SHA1 Message Date
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
7c7693179d Refactor streamers 2018-08-22 19:59:14 +02:00
Phan An
8f7654a220 Refactor scrobble 2018-08-19 23:17:05 +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
67357316bc Big revamp for lastfm and youtube services 2018-08-19 13:13:08 +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
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
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
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
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
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
c9ec0406ff Apply fixes from StyleCI (#611) 2017-06-04 02:31:59 +01:00
Phan An
796088944d Add more refactorings 2017-06-04 02:30:45 +01:00
Phan An
7d80f1d143 Refactor and fix code styles 2017-06-03 17:35:08 +01:00
Phan An
eb9a1a66e3 Apply fixes from StyleCI (#588) 2017-05-02 10:23:32 +07:00
Phan An
47360bcfa6
Cleanups 2017-05-02 10:23:10 +07:00
Phan An
2e15efd1c3 Apply fixes from StyleCI (#587) 2017-05-02 00:49:44 +07:00
Phan An
0521e2e119
Merge conflicts 2017-05-02 00:49:08 +07:00
Phan An
4301682c7d Apply fixes from StyleCI (#586) 2017-05-02 00:47:23 +07:00
Phan An
2e59ab0bb1
Use proper Request instance 2017-04-29 14:06:36 +08:00
Phan An
40225f9cff
Use proper Request instance 2017-04-29 14:04:23 +08:00
Phan An
a8bd7ea7c6
Rename contributing_artist_id to simple artist_id 2017-04-29 11:49:14 +08:00
Phan An
a123243658
Always save contributing_artist_id for S3 put 2017-04-29 10:58:08 +08:00
Phan An
40deeb9f8b
Refactor and clean up 2017-04-29 10:55:41 +08:00
Phan An
47c36f289e
Move User dependency out of Song scrobble method 2017-04-29 10:38:17 +08:00
Phan An
57157b5a57
Modify MediaCache to adapt to new changes 2017-04-28 22:36:57 +08:00
Phan An
220cb45cdb Apply fixes from StyleCI (#580) 2017-04-24 14:38:41 +08:00
Phan An
a96c0e22fb Compilation fixes getting in shape 2017-04-24 00:01:02 +08:00
Phan An
3049804811 Move streamers into Services 2017-04-20 19:20:32 +08:00
An Phan
96e5c62ce0
Add "Play at 128kbps on mobile" setting 2017-03-26 17:02:03 +08:00
An Phan
f51e660501
Cache the media 2017-01-06 11:04:08 +08:00
An Phan
86ca8d40f6
Add iTunes integration 2016-12-11 21:08:30 +08:00
An Phan
09b15b9e66
Add Sentry 2016-12-09 16:23:40 +08:00
An Phan
b058ea5c42
Fix playlist sync bug 2016-11-18 13:41:54 +08:00
An Phan
fe3600670e
Simplify song tests 2016-09-26 14:49:30 +08:00
An Phan
b0f5b3d76e
Upgrade to Laravel 5.3 2016-09-26 14:30:00 +08:00
bdgold
cf1a244606 Fix steaming bug typo (#439) 2016-09-10 14:39:57 +07:00
bdgold
27933d49cf move env variables to config (#415) 2016-08-21 22:19:03 +07:00
Phan An
4eeb3d577c Applied fixes from StyleCI (#407) 2016-08-16 23:12:35 +08:00
An Phan
4480ad7ccf
Make PHPStorm happy 2016-08-16 23:12:11 +08:00
An Phan
1f6d272f39
Refactor 2016-08-10 09:23:52 +08:00
An Phan
089283b04c
Better logic for transcoding check 2016-08-10 09:12:20 +08:00
An Phan
8065c00f94
Fixes #396 2016-08-10 09:08:52 +08:00
An Phan
d203b8a9d7
Empty settings for non-admins 2016-08-08 10:55:15 +07:00
Phan An
cb7cebe151 Applied fixes from StyleCI (#392) 2016-08-03 18:42:39 +08:00
An Phan
65d403f857
Code style and refactor 2016-08-03 18:42:11 +08:00
An Phan
e3ee03db24
Complete YouTube feature 2016-07-30 23:32:17 +08:00
An Phan
528469fdc4
Add YouTube service on the server side 2016-07-14 16:53:10 +08:00
An Phan
339d0c464d
Fix playlist creation bug 2016-07-11 01:59:25 +08:00
An Phan
c098301167
Add S3 functionality 2016-06-13 17:04:42 +08:00
An Phan
ad150daa5e
Fix syntax (!) bug 2016-06-10 15:51:08 +08:00
An Phan
83f421f990 Add ability to view artist individually 2016-06-05 19:06:24 +08:00
An Phan
db340438ad Add ability to view album info individually 2016-06-05 18:46:40 +08:00
An Phan
27b44ec79c Refactor useLastfm config 2016-06-05 18:44:13 +08:00
Phan An
b8bcff0842 Applied fixes from StyleCI 2016-06-04 13:10:29 -04:00
An Phan
b151f3f00a Typos and doc fixes 2016-06-04 22:17:24 +08:00
An Phan
6d0322f80d Finish Favorites download 2016-06-04 21:42:12 +08:00
An Phan
44e184454c Authorize playlist before downloading 2016-06-04 21:29:45 +08:00
An Phan
970981ccc1 Finish Playlist download, starting Fav download 2016-06-04 20:29:23 +08:00
An Phan
774ae68efb Finish Album download, starting Artist download 2016-06-04 19:20:11 +08:00
An Phan
5185f3dc6b Finish structure and song download 2016-06-03 01:53:26 +08:00
alex-phillips
b2ffb28fd3 added support for determining to transcode or not via the URL as well as specifying the bitrate, also added support for starting transcode stream at specific point in time of the file 2016-06-02 08:47:48 -04:00
Phan An
1343eda239 Applied fixes from StyleCI 2016-05-30 01:52:02 -04:00
An Phan
aba3740567 Refactor 2016-05-30 13:50:59 +08:00
An Phan
22b228f338 Merge branch 'master' into compilation 2016-05-08 17:52:51 +08:00
An Phan
3d46e73e8b Auto log out when session expires (fixes #320) 2016-05-06 13:04:59 +08:00
An Phan
4dc06719b3 First try 2016-04-17 23:38:06 +08:00
An Phan
1386b0b809 Use abort_unless instead of abort_if where applicable 2016-03-11 18:17:54 +08:00
An Phan
587d587bc9 Bump Laravel version and use some syntax sugar 2016-03-11 18:13:13 +08:00
Phan An
461480f766 Applied fixes from StyleCI 2016-03-05 23:11:28 -05:00
An Phan
8a5d242122 Add edit ability (fixes #228) 2016-03-06 11:58:51 +08:00
An Phan
5262fee853 Doc and style 2016-02-03 23:39:15 +08:00
Phan An
9dc423f430 Applied fixes from StyleCI 2016-01-31 09:00:15 -05:00
An Phan
65fb45f08a Add FLAC support 2016-01-28 23:19:06 +08:00
An Phan
24cb32ceea Serve static assets via CDN if possible 2016-01-28 13:35:51 +08:00
Phan An
9309c4a99f Applied fixes from StyleCI 2016-01-26 10:49:03 -05:00
An Phan
57b6cc022e Quick route fix 2016-01-26 23:23:55 +08:00
An Phan
8453c8e30b Several methods for API 2016-01-26 14:32:29 +08:00
An Phan
3e0c3ab809 Add CDN support 2016-01-25 18:55:00 +08:00
An Phan
190c2c117f Invalidate token before logging out 2016-01-25 18:38:41 +08:00
An Phan
12e4bd473f Basically completed jwt 2015-12-30 11:29:35 +07:00
An Phan
950772a701 Bump version 2015-12-30 11:15:21 +07:00
An Phan
ea18806f09 Fixes #151 2015-12-30 11:15:21 +07:00
An Phan
b3a93e4038 Add a version check 2015-12-27 21:06:10 +07:00
An Phan
a8d620b83d Upgrade to Laravel 5.2 2015-12-27 20:29:03 +07:00
An Phan
a083696289 Add updateNowPlaying for Last.fm 2015-12-23 14:26:16 +08:00
Phan An
54c9a88bc1 Applied fixes from StyleCI 2015-12-21 08:50:26 -05:00
An Phan
3e747101a9 Easier to test Interaction code 2015-12-21 12:32:15 +08:00
An Phan
71b8001978 Shortenend code 2015-12-21 10:17:12 +08:00
An Phan
074294f6a2 Fix docblock 2015-12-21 00:07:20 +08:00
Phan An
1d417221bf Applied fixes from StyleCI 2015-12-20 07:30:28 -05:00
An Phan
f449a1a744 Add Last.fm scrobbling functionality 2015-12-20 20:17:35 +08:00
An Phan
cf27ed713d First integration with Last.fm
Koel can now integrate and use the rich information from Last.fm. Now
whenever a song is played, its album and artist information will be
queried from Last.fm and cached for later use. What's better, if an
album has no cover, Koel will try to update its cover if one is found on
Last.fm.

In order to use this feature, users only need to provide valid Last.fm
API credentials (namely LASTFM_API_KEY and LASTFM_API_SECRET) in .env. A
npm and gulp rebuild is also required - just like with every update.
2015-12-20 00:36:44 +08:00
Phan An
14cf272030 Applied fixes from StyleCI 2015-12-16 12:25:25 -05:00
An Phan
7888c52355 Fix doc 2015-12-17 01:24:33 +08:00
Phan An
ed5c817941 Applied fixes from StyleCI 2015-12-16 11:15:20 -05:00
An Phan
9a806632cb Add X-Accel-Redirect stream support 2015-12-16 23:52:43 +08:00
Pedro Borges
830718f396 Update docblocks 2015-12-15 08:35:46 -02:00
Pedro Borges
dab4486eee Fix after merge issues 2015-12-14 22:45:10 -02:00
Pedro Borges
d21736d59d Fix conflicts 2015-12-14 16:12:20 -02:00
Pedro Borges
899c7176c1 Use Laravel built-in authorization
The comment below motivated me to find a better solution for the
repeated authorisation checks:

```php
// This can't be put into a Request authorize(), due to Laravel(?)'s
limitation.
```

This is the result.
2015-12-14 14:27:26 -02:00
Phan An
f9c9a4df2d Applied fixes from StyleCI 2015-12-14 08:22:39 -05:00
An Phan
daaa7ba747 Disable auto discovering mod_xsendfile.
The reason being, there might be cases that user have installed but not
configured the module. Auto discovery here will cause the streaming to
fail. With auto discovery removed, Koel will only stream using
mod_xsendfile if MOD_X_SENDFILE_ENABLED env var is found. Hence, users
can disable it in .htaccess if they're not ready.
2015-12-14 12:32:29 +08:00
An Phan
f9edb8af7b Tmp. disabling XAccelRedirect streamer 2015-12-14 12:31:06 +08:00
An Phan
c3ec0e1198 Move touch and tile icons to img folder 2015-12-14 11:39:06 +08:00
An Phan
0ee372882c Big Bang 2015-12-13 12:42:28 +08:00