Skip to content

Commit

Permalink
Do not assign playlists a viewId during migration. (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Komodo5197 authored Nov 6, 2024
1 parent 88d611e commit 64ec52f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/services/downloads_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,9 @@ class DownloadsService {
}

isarItem.state = DownloadItemState.complete;
isarItem.viewId = parent.viewId;
if (isarItem.baseItemType != BaseItemDtoType.playlist) {
isarItem.viewId = parent.viewId;
}

_isar.writeTxnSync(() {
_isar.downloadItems.putSync(isarItem);
Expand Down

0 comments on commit 64ec52f

Please sign in to comment.