use episode number for migration

This commit is contained in:
mrjvs 2023-10-30 21:40:02 +01:00
parent 023a850e4f
commit 380b0675aa

View File

@ -60,7 +60,7 @@ export const VideoProgressStore = createVersionedStore<WatchedStoreData>()
) {
// Find episode ID (barely ever works)
const episodeTitle = oldItem.item.meta.seasonData.episodes.find(
(ep) => ep.id === oldItem.item.series?.episodeId
(ep) => ep.number === oldItem.item.series?.episode
)?.title;
// Add season to season data