mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 06:51:49 +01:00
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
import { versionedStoreBuilder } from './base.js';
|
|
|
|
/*
|
|
version 0
|
|
{
|
|
[{scraperid}]: {
|
|
movie: {
|
|
[{movie-id}]: {
|
|
full: {
|
|
currentlyAt: number,
|
|
totalDuration: number,
|
|
updatedAt: number, // unix timestamp in ms
|
|
meta: FullMetaObject, // no idea whats in here
|
|
}
|
|
}
|
|
},
|
|
show: {
|
|
[{show-id}]: {
|
|
[{season}-{episode}]: {
|
|
currentlyAt: number,
|
|
totalDuration: number,
|
|
updatedAt: number, // unix timestamp in ms
|
|
show: {
|
|
episode: string,
|
|
season: string,
|
|
},
|
|
meta: FullMetaObject, // no idea whats in here
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
|
|
export const VideoProgressStore = versionedStoreBuilder()
|
|
.setKey('video-progress')
|
|
.addVersion({
|
|
version: 0,
|
|
create() {
|
|
return {}
|
|
}
|
|
})
|
|
.build()
|