diff --git a/src/routes/(app)/browse/migrate/manga/[MangaID]/migrateModal.svelte b/src/routes/(app)/browse/migrate/manga/[MangaID]/migrateModal.svelte
index 8cfe9dcb..efca3b13 100644
--- a/src/routes/(app)/browse/migrate/manga/[MangaID]/migrateModal.svelte
+++ b/src/routes/(app)/browse/migrate/manga/[MangaID]/migrateModal.svelte
@@ -13,6 +13,7 @@
type GetMangaQuery,
type UpdateMangaCategoriesMutation
} from '$lib/generated';
+ import { MangaMeta } from '$lib/simpleStores';
import type { ApolloCache, FetchResult } from '@apollo/client';
import { ProgressRadial, getModalStore } from '@skeletonlabs/skeleton';
import type { SvelteComponent } from 'svelte';
@@ -24,9 +25,11 @@
let doChapters = true;
let doCategories = true;
+ let doTracking = true;
let MigrateLoading = false;
let CopyLoading = false;
+ const mangaMeta = MangaMeta(id);
async function MigrateManga() {
MigrateLoading = true;
@@ -55,6 +58,9 @@
if (doCategories) {
await CopyMangaCategories();
}
+ if (doTracking) {
+ await CopyMangaTracking();
+ }
parent.onClose();
}
@@ -232,6 +238,12 @@
update: (a, b) => updateMangaCategoriesUpdate(a, b, dat)
});
}
+
+ async function CopyMangaTracking() {
+ $mangaMeta.mangaUpdatesSeriesID =
+ JSON.parse(manga.meta.find((e) => e.key === 'VUI3_mangaUpdatesSeriesID')?.value ?? 'null') ??
+ null;
+ }
{#if $modalStore[0]}
@@ -245,6 +257,9 @@