Browse Source

MediaLibraryService: Migration: Update didMigrate value

By caching it on the start on the medialibrary, we need to update
the value when successfully migrated, else it will continue to migrate
on each new media parsing.
Soomin Lee 6 years ago
parent
commit
a1742d836b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SharedSources/MediaLibraryService.swift

+ 1 - 0
SharedSources/MediaLibraryService.swift

@@ -233,6 +233,7 @@ private extension MediaLibraryService {
 
         if migrateMedia(oldMedialibrary) && migratePlaylists(oldMedialibrary) {
             UserDefaults.standard.set(true, forKey: MediaLibraryService.migrationKey)
+            didMigrate = true
             return true
         }
         return false