Skip to content

Commit

Permalink
remove check for existing playlist metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 9, 2024
1 parent 0692226 commit 70876e9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions lib/screens/music_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@ void postLaunchHook(WidgetRef ref) async {

// make sure playlist info is downloaded for users upgrading from older versions and new installations AFTER logging in and selecting their libraries/views
if (!FinampSettingsHelper.finampSettings.hasDownloadedPlaylistInfo) {
// check if metadata already downloaded to avoid possible duplicates
DownloadItemStatus? status = downloadsService.getStatus(
DownloadStub.fromFinampCollection(
FinampCollection(type: FinampCollectionType.allPlaylistsMetadata)),
null);
if (status.isRequired == false) {
await downloadsService.addDefaultPlaylistInfoDownload().catchError((e) {
// log error without snackbar, we don't want users to be greeted with errors on first launch
_musicScreenLogger.severe("Failed to download playlist metadata: $e");
});
}
await downloadsService.addDefaultPlaylistInfoDownload().catchError((e) {
// log error without snackbar, we don't want users to be greeted with errors on first launch
_musicScreenLogger.severe("Failed to download playlist metadata: $e");
});
FinampSettingsHelper.setHasDownloadedPlaylistInfo(true);
}

Expand Down

0 comments on commit 70876e9

Please sign in to comment.