mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
First reimplementation of download functionality
This commit is contained in:
parent
77a3b90b4e
commit
3e7d260d6a
16 changed files with 143 additions and 92 deletions
|
|
@ -60,28 +60,6 @@ public class MappingUtil {
|
|||
return playlists;
|
||||
}
|
||||
|
||||
public static ArrayList<Download> mapDownload(List<Child> media, String playlistId, String playlistName) {
|
||||
ArrayList<Download> downloads = new ArrayList();
|
||||
|
||||
// TODO
|
||||
/* for (Child item : media) {
|
||||
Download download = (Download) item;
|
||||
download.setMediaID();
|
||||
download.setServer();
|
||||
download.setPlaylistId();
|
||||
downloads.add(download);
|
||||
} */
|
||||
|
||||
return downloads;
|
||||
}
|
||||
|
||||
public static Download mapDownload(Child media, String playlistId, String playlistName) {
|
||||
// TODO
|
||||
//return new Download(media, playlistId, playlistName);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@OptIn(markerClass = UnstableApi.class)
|
||||
public static MediaItem mapMediaItem(Context context, Child media, boolean stream) {
|
||||
boolean isDownloaded = DownloadUtil.getDownloadTracker(context).isDownloaded(MusicUtil.getDownloadUri(media.getId()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue