Commit Graph

508 Commits

Author SHA1 Message Date
Yahor Berdnikau 04df5b20da Use new api getShares call in RESTMusicService.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 22:00:10 +01:00
Yahor Berdnikau 3bbd1fb16b Add methods to convert api share entity to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 22:00:10 +01:00
Yahor Berdnikau d5cdc18174 Add getShares call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 21:15:36 +01:00
Yahor Berdnikau 6e05dc7c40
Merge pull request #58 from ultrasonic/add-update-jukebox
Add update jukebox
2017-11-07 22:17:25 +01:00
Yahor Berdnikau db73978596 Use new subsonic api jukebox control method.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 22:03:52 +01:00
Yahor Berdnikau 17aaa0f87f Add JukeboxStatus converter to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:57:43 +01:00
Yahor Berdnikau 947a1ce3b5 Add jukebox control call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:26:44 +01:00
Yahor Berdnikau 84e59a3581
Merge pull request #57 from ultrasonic/add-get-download-stream
Add get download stream
2017-11-05 22:25:00 +01:00
Yahor Berdnikau 3e2529bd25 Use new subsonic api stream call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau ba412721ac Add stream call.
Also introduced helper method in SubsonicApiClient that handles error
cases.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau c8c8766b55 Increase read timeout.
When range interceptor modifies request it also increases read timeout,
that allows server to do transcoding of the response and skip bytes
to offset value.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau 72333f245f Add Range header modifier.
Add interceptor that modifies call "Range" header. It changes header
value to "bytes=value-".
2017-11-05 18:44:31 +01:00
Yahor Berdnikau be75511bb7 Update okhttp to 3.9.0 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-19 22:27:45 +02:00
Yahor Berdnikau 74c5123255 Merge pull request #56 from ultrasonic/add-get-cover-art
Add get cover art
2017-10-18 22:37:34 +02:00
Yahor Berdnikau 4ef8507353 Use new subsonic api getCoverArt call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-18 22:32:30 +02:00
Yahor Berdnikau 48e6788224 Add method to get cover art.
As this call should return byte stream: I've introduced helper method
in client to do the actual call and parse possible json error response.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-17 21:48:37 +02:00
Yahor Berdnikau d08beff1f4 Merge pull request #55 from ultrasonic/update-gradle
Update gradle to 4.2.1 version.
2017-10-07 21:03:00 +02:00
Yahor Berdnikau 351f51df28 Update gradle to 4.2.1 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-07 20:59:16 +02:00
Yahor Berdnikau 436ecc3aee Merge pull request #54 from ultrasonic/update-kotlin
Update kotlin to 1.1.51 version.
2017-10-07 20:54:51 +02:00
Yahor Berdnikau bd7e7416a6 Update kotlin to 1.1.51 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-07 20:46:53 +02:00
Yahor Berdnikau c66aa55d7a Merge pull request #53 from ultrasonic/add-get-starred-2
Add get starred 2
2017-09-16 23:02:28 +02:00
Yahor Berdnikau cc531698e5 Use new subsonic api getSearch2 call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:57:39 +02:00
Yahor Berdnikau f85759eb58 Add getStarred2() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:57:39 +02:00
Yahor Berdnikau 19f5dde397 Merge pull request #52 from ultrasonic/add-get-starred
Add get starred
2017-09-16 22:31:25 +02:00
Yahor Berdnikau a6bb02fc77 Use new subsonic api getStarred call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:27:30 +02:00
Yahor Berdnikau bad5cf5a9a Add getStarred call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:19:17 +02:00
Yahor Berdnikau af72475be5 Merge pull request #51 from ultrasonic/add-get-random-songs
Add get random songs
2017-09-16 21:00:21 +02:00
Yahor Berdnikau d848fa2669 Use new subsonic api getRandomSongs call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:57:52 +02:00
Yahor Berdnikau 0abc71cf9f Add getRandomSongs call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:47:11 +02:00
Yahor Berdnikau 69299c40df Merge pull request #50 from ultrasonic/add-get-album-list-2
Add get album list 2
2017-09-16 20:11:35 +02:00
Yahor Berdnikau 2e90581fb5 Use new subsonic api getAlbumList2 call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:06:30 +02:00
Yahor Berdnikau bb95d04dc5 Add method to convert list of Albums to MusicDirectory Entry list.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:02:44 +02:00
Yahor Berdnikau 14fac18978 Add getAlbumList2 request.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 19:56:38 +02:00
Yahor Berdnikau 0a22f7bcc7 Merge pull request #49 from ultrasonic/add-get-album-list
Add get album list
2017-09-14 22:39:20 +02:00
Yahor Berdnikau 69ac8551c6 Use new subsonic api getAlbumList() method.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 22:34:30 +02:00
Yahor Berdnikau 8e895685fc Add method to map string type to AlbumListType enum.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 22:32:24 +02:00
Yahor Berdnikau 645728c0f7 Add converting MusicDirectoryChild list to domain entities list.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 22:01:55 +02:00
Yahor Berdnikau 2d12aea79f Enable setting to not fail parsing on unknown field.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 21:51:56 +02:00
Yahor Berdnikau 046baf0ffe Add missing user rating and average rating to MusicDirectoryChild.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 21:50:20 +02:00
Yahor Berdnikau cd617c7dd8 Add getAlbumList call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-13 22:45:10 +02:00
Yahor Berdnikau a5d7e47dfa Merge pull request #48 from ultrasonic/add-scrobble
Add scrobble
2017-09-04 21:29:05 +02:00
Yahor Berdnikau 71b7948908 Use new subsonic api scrobble call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-04 21:25:56 +02:00
Yahor Berdnikau 9892805517 Add scrobble call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-04 21:20:22 +02:00
Yahor Berdnikau 7143dc4db1 Merge pull request #47 from ultrasonic/add-get-lyrics
Add get lyrics
2017-09-03 22:26:04 +02:00
Yahor Berdnikau 1bb1fc0aa0 Use new subsonic api getLyrics() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 22:24:29 +02:00
Yahor Berdnikau 290eb95246 Add converting subsonic api Lyrics entity to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 22:23:32 +02:00
Yahor Berdnikau 9844fb1282 Add getLyrics call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 22:09:13 +02:00
Yahor Berdnikau 59ed898b23 Merge pull request #46 from ultrasonic/add-get-podcasts-episodes
Add get podcasts episodes
2017-09-03 21:43:36 +02:00
Yahor Berdnikau ba0152bbca Use new subsonic api getPodcasts call in RestMusicService.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 21:42:17 +02:00
Yahor Berdnikau 636968f03c Add getPodcasts call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 16:10:48 +02:00