1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-31 09:27:04 +01:00

74 Commits

Author SHA1 Message Date
Yahor Berdnikau
6b950f7b28 Extract password param providing in separate interceptors.
Added interceptor for api version before 1.12.0 and after.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-22 21:56:16 +01:00
Yahor Berdnikau
6503ce2e4c Add method to get final stream url.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-21 21:29:24 +01:00
Yahor Berdnikau
52545bc714 Add getAvatar() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:19:33 +01:00
Yahor Berdnikau
22ec570b69 Add updateShare() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 15:25:31 +01:00
Yahor Berdnikau
a1d5450515 Add deleteShare() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 14:36:41 +01:00
Yahor Berdnikau
d26b6dce7d Add getVideos() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 13:51:20 +01:00
Yahor Berdnikau
ca2ffc7279 Add deleteBookmark() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 22:14:48 +01:00
Yahor Berdnikau
010d7679b9 Add createBookmark() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:55:07 +01:00
Yahor Berdnikau
0cc0bbedaf Add getBookmarks() api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:33:02 +01:00
Yahor Berdnikau
c618538b14 Add addChatMessage() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:18:13 +01:00
Yahor Berdnikau
c917bcb1a6 Update ktlint to 0.12.1 version.
Also updated ktlint-gradle to 2.3.0 version. Added ktlint reports to
circle CI.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:04:38 +01:00
Yahor Berdnikau
9cecebb314 Add getChatMessages() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:19:24 +01:00
Yahor Berdnikau
6b74a3e563 Add getUser api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:46:51 +01:00
Yahor Berdnikau
5ea9eb7818 Increase default read timeout to 60 sec.
Default Okhttp read timeout is 10 sec, and as subsonic servers may be
not fast, better to increase timeout.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:11:03 +01:00
Yahor Berdnikau
10e25e8597 Add getSongsByGenre api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 21:57:28 +01:00
Yahor Berdnikau
1502c4c9c8 Add getGenres app call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-12 00:00:11 +01:00
Yahor Berdnikau
1012e41620 Add createShare api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-11 20:31:20 +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
947a1ce3b5 Add jukebox control call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:26:44 +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
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
f85759eb58 Add getStarred2() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:57:39 +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
0abc71cf9f Add getRandomSongs call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:47:11 +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
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
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
9892805517 Add scrobble call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-04 21:20:22 +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
636968f03c Add getPodcasts call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 16:10:48 +02:00
Yahor Berdnikau
8bf9399e48 Add updatePlaylist() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 10:25:36 +02:00
Yahor Berdnikau
e09476daea Add deletePlaylist() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-02 21:07:19 +02:00
Yahor Berdnikau
bb64b9e3ca Add createPlaylist api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-02 20:42:55 +02:00
Yahor Berdnikau
e4728af320 Add getPlaylists api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-01 22:46:10 +02:00
Yahor Berdnikau
47012c7909 Use same approach to all integration tests.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-29 22:25:29 +02:00
Yahor Berdnikau
b73cc0f816 Add getPlaylist call to subsonic api.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-27 22:12:23 +02:00
Yahor Berdnikau
d97590b346 Add new search3 api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-27 11:39:38 +02:00
Yahor Berdnikau
dd115757b6 Add search2 api request.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-25 21:32:36 +02:00
Yahor Berdnikau
9bf0176984 Add function to assert right request param.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-25 21:31:57 +02:00
Yahor Berdnikau
5a20082938 Add search api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-24 22:04:53 +02:00
Yahor Berdnikau
bb4de9d065 Migrate subsonic api module to new gradle dependencies system.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-21 22:08:42 +02:00
Yahor Berdnikau
6c0f43b2ff Add getAlbum api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 22:04:41 +02:00
Yahor Berdnikau
8899260977 Change cover art to be a string.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 21:14:09 +02:00
Yahor Berdnikau
f4680ffeac Add getArtist request.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 19:45:42 +02:00
Yahor Berdnikau
0920cc94a8 Use default values for getMusicDirectory response.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 15:10:34 +02:00
Yahor Berdnikau
34b49f67a2 Add unstar request.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-17 23:00:51 +02:00