Commit Graph

497 Commits

Author SHA1 Message Date
Yahor Berdnikau 0bda4476ee
Merge pull request #95 from ultrasonic/update-contributing
Update doc with what branch use by default for PR.
2017-12-16 22:29:55 +01:00
Yahor Berdnikau 385790d601 Update doc with what branch use by default for PR.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:28:31 +01:00
Yahor Berdnikau 4715deb159
Merge pull request #94 from ultrasonic/bug/entities-ids
Bug/entities ids
2017-12-16 22:22:54 +01:00
Yahor Berdnikau aadb14eb4e Fix service try download covert art for empty id.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:20:44 +01:00
Yahor Berdnikau b2384a43ce Update api definition to use String type for ids.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:14:01 +01:00
Yahor Berdnikau 5bf5af2842 Change MusicDirectoryChild ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 21:28:18 +01:00
Yahor Berdnikau ad20064d79 Change Share id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:54:43 +01:00
Yahor Berdnikau 9cb6a5c4e9 Change PodcastChannel id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:51:07 +01:00
Yahor Berdnikau 434d07c4a3 Change Playlist id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:47:00 +01:00
Yahor Berdnikau e62e5c553c Change MusicDirectory ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:43:39 +01:00
Yahor Berdnikau f2d838cb1c Change album ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:10:25 +01:00
Yahor Berdnikau a694f895e9 Change artist id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 19:50:57 +01:00
Yahor Berdnikau 66d7973c5a Replace type of id property to String.
Some api implementations are using UUID string for ids.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-12 21:08:49 +01:00
Yahor Berdnikau 46cf8a71c2
Merge pull request #88 from ultrasonic/update-readme
Update project README
2017-12-10 13:52:59 +01:00
Yahor Berdnikau 7790e3bca9 Update project README
This reflects changes in the project status. Added Contributing guide and
rewrite new issue template.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-10 13:44:52 +01:00
Yahor Berdnikau 0516ebcc20
Merge pull request #87 from ultrasonic/api-versions-check
Api versions check
2017-12-10 10:54:12 +01:00
Yahor Berdnikau 3fddef0ec5 Check call if it supported by current server version.
Add a api wrapper that checks if current protocol version is supported
for this call and fail fast if not.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-10 10:48:41 +01:00
Yahor Berdnikau 336f505ba5 Replace ServerTooOldException with more proper ApiNotSupportedException. 2017-12-03 14:14:01 +01:00
Yahor Berdnikau 491d8423c4
Merge pull request #86 from ultrasonic/handle-server-versions
Adapt client to server version
2017-12-02 21:58:37 +01:00
Yahor Berdnikau d384bcc3c5 Update dynamically client version.
Now subsonic api client will update dynamically to the supported server
api version when it doing the requests.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau e838750ee2 Add proxy password interceptor.
It passes request chain either to hex password interceptor or
to md5+salt interceptor depending on current protocol version.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau 0c5ac61402 Add 1.16.0 subsonic version. 2017-12-02 21:51:26 +01:00
Yahor Berdnikau c76d25e1ba Add version interceptor.
This interceptor add version param to request and peeks into response
to parse server version.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 21:51:26 +01:00
Yahor Berdnikau 1c56d6459b Fix subsonic accepts only lowercase md5 password hash.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 11:48:23 +01:00
Yahor Berdnikau 0deed54a9e
Merge pull request #82 from ultrasonic/introduce-auth-interceptors
Extract password param providing in separate interceptors.
2017-11-22 22:01:52 +01:00
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 b9cfc0ed6d
Merge pull request #81 from ultrasonic/add-stream-url
Add stream url
2017-11-21 21:33:52 +01:00
Yahor Berdnikau c4f28280f9 Use getStreamUrl() method for video urls.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-21 21:29:24 +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 1607f923b6
Merge pull request #78 from ultrasonic/update-get-video-url
Update get video url
2017-11-19 22:27:12 +01:00
Yahor Berdnikau d1256d2b77 Remove unused Apache http client.
Finally!

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:13:46 +01:00
Yahor Berdnikau 4b789e4c88 Disable getVideoUrl() method.
This method uses some assuptions on endpoint urls.
The right way is to use stream() api call to get video stream.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:10:34 +01:00
Yahor Berdnikau 7f5e04ebb2
Merge pull request #76 from ultrasonic/add-get-avatar
Add get avatar
2017-11-19 21:50:57 +01:00
Yahor Berdnikau 91d93b713d Remove unused methods.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:47:58 +01:00
Yahor Berdnikau 662e99ff5a Use new getAvatar() api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:40:27 +01:00
Yahor Berdnikau f2ce22ef08 Fix response check NPE
Fix response check doens't take into account that body will be null
if response is not successfull.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:39:13 +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 3e5159a1a2
Merge pull request #75 from ultrasonic/add-update-share
Add update share
2017-11-19 15:53:43 +01:00
Yahor Berdnikau 48f8d35e4f Use new api updateShare() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 15:51:15 +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 81bb21c841
Merge pull request #74 from ultrasonic/add-delete-share
Add delete share
2017-11-19 15:04:34 +01:00
Yahor Berdnikau b1f7e7a14c Use new api deleteShare() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 14:41: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 fe12c440e7
Merge pull request #73 from ultrasonic/add-get-videos
Add get videos
2017-11-19 14:01:15 +01:00
Yahor Berdnikau 51ed43978b Use new api getVideos() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 13:58:48 +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 c5bf541c45
Merge pull request #72 from ultrasonic/add-delete-bookmark
Add delete bookmark
2017-11-18 22:21:34 +01:00
Yahor Berdnikau a9516ecab6 Use new api deleteBookmark() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 22:19:00 +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 c6ad07f56f
Merge pull request #71 from ultrasonic/add-create-bookmark
Add create bookmark
2017-11-18 22:04:42 +01:00