caching playlists

This commit is contained in:
gdlbo
2022-09-23 14:54:12 +03:00
parent 70d597f6e8
commit 9c0c27d16b
2 changed files with 2 additions and 1 deletions
@@ -60,6 +60,7 @@ public class AudioDownloader {
public static void cacheTrack(MusicTrack track) {
var trackId = track.y1();
if (CacheDatabaseDelegate.isCached(trackId)) {
CacheDatabaseDelegate.removeTrackFromCache(LibVKXClient.asId(track));
return;
@@ -28,7 +28,7 @@ public class PlaylistInjector {
public final static String CHANNEL_NAME = "VTCH";
public static void injectDownloadPlaylist(Playlist playlist) {
AudioDownloader.downloadPlaylist(playlist);
AudioDownloader.cachePlaylist(playlist);
}
public static boolean eligibleForOfflineCaching() {