mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-05-06 02:21:05 +03:00
Use new subsonic api deletePlaylist call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
e09476daea
commit
9de41524e9
@ -593,19 +593,17 @@ public class RESTMusicService implements MusicService
|
|||||||
checkResponseSuccessful(response);
|
checkResponseSuccessful(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deletePlaylist(String id, Context context, ProgressListener progressListener) throws Exception
|
public void deletePlaylist(String id,
|
||||||
{
|
Context context,
|
||||||
Reader reader = getReader(context, progressListener, "deletePlaylist", null, "id", id);
|
ProgressListener progressListener) throws Exception {
|
||||||
try
|
Long pId = id == null ? null : Long.valueOf(id);
|
||||||
{
|
|
||||||
new ErrorParser(context).parse(reader);
|
updateProgressListener(progressListener, R.string.parser_reading);
|
||||||
}
|
Response<SubsonicResponse> response = subsonicAPIClient.getApi()
|
||||||
finally
|
.deletePlaylist(pId).execute();
|
||||||
{
|
checkResponseSuccessful(response);
|
||||||
Util.close(reader);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updatePlaylist(String id, String name, String comment, boolean pub, Context context, ProgressListener progressListener) throws Exception
|
public void updatePlaylist(String id, String name, String comment, boolean pub, Context context, ProgressListener progressListener) throws Exception
|
||||||
|
Loading…
x
Reference in New Issue
Block a user