mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
Removed Jellyfin dependencies
This commit is contained in:
parent
737eaa1822
commit
9495fbd83d
16 changed files with 62 additions and 310 deletions
|
|
@ -30,7 +30,7 @@ public class MediaRetrievalClient {
|
|||
this.mediaRetrievalService = retrofit.create(MediaRetrievalService.class);
|
||||
}
|
||||
|
||||
public Call<SubsonicResponse> stream(String id, int maxBitRate, String format) {
|
||||
public Call<SubsonicResponse> stream(String id, Integer maxBitRate, String format) {
|
||||
Log.d(TAG, "stream()");
|
||||
return mediaRetrievalService.stream(subsonic.getParams(), id, maxBitRate, format);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,12 +6,13 @@ import java.util.Map;
|
|||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Query;
|
||||
import retrofit2.http.QueryMap;
|
||||
|
||||
public interface MediaRetrievalService {
|
||||
@GET("stream?id={id}?maxBitRate={maxBitRate}?format={format}")
|
||||
Call<SubsonicResponse> stream(@QueryMap Map<String, String> params, String id, int maxBitRate, String format);
|
||||
@GET("stream")
|
||||
Call<SubsonicResponse> stream(@QueryMap Map<String, String> params, @Query("id") String id, @Query("maxBitRate") Integer maxBitRate, @Query("format") String format);
|
||||
|
||||
@GET("download?id={id}")
|
||||
Call<SubsonicResponse> download(@QueryMap Map<String, String> params, String id);
|
||||
@GET("download")
|
||||
Call<SubsonicResponse> download(@QueryMap Map<String, String> params, @Query("id") String id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue