mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-22 14:57:40 +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()
|