File tree Expand file tree Collapse file tree
api/src/main/java/xyz/gianlu/librespot/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import xyz .gianlu .librespot .mercury .MercuryClient ;
1010import xyz .gianlu .librespot .mercury .MercuryRequests ;
1111import 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
1714import 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 }
You can’t perform that action at this time.
0 commit comments