Skip to content

Commit 0c88a89

Browse files
committed
Added episode to metadata endpoints
1 parent de04915 commit 0c88a89

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

api/src/main/java/xyz/gianlu/librespot/api/MetadataHandler.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
import xyz.gianlu.librespot.mercury.MercuryClient;
1010
import xyz.gianlu.librespot.mercury.MercuryRequests;
1111
import xyz.gianlu.librespot.mercury.ProtobufMercuryRequest;
12-
import xyz.gianlu.librespot.mercury.model.AlbumId;
13-
import xyz.gianlu.librespot.mercury.model.ArtistId;
14-
import xyz.gianlu.librespot.mercury.model.PlaylistId;
15-
import xyz.gianlu.librespot.mercury.model.TrackId;
12+
import xyz.gianlu.librespot.mercury.model.*;
1613

1714
import java.io.IOException;
1815

@@ -42,6 +39,8 @@ public MetadataHandler(@NotNull Session session) {
4239
return handle(MercuryRequests.getArtist(ApiUtils.extractId(ArtistId.class, request, request.params)));
4340
case "album":
4441
return handle(MercuryRequests.getAlbum(ApiUtils.extractId(AlbumId.class, request, request.params)));
42+
case "episode":
43+
return handle(MercuryRequests.getEpisode(ApiUtils.extractId(EpisodeId.class, request, request.params)));
4544
default:
4645
throw ApiServer.PredefinedJsonRpcException.from(request, ApiServer.PredefinedJsonRpcError.METHOD_NOT_FOUND);
4746
}

0 commit comments

Comments
 (0)