Revert "remove thumbnail cache"

This reverts commit e0db4931f1.
This commit is contained in:
austinried
2022-03-22 20:39:50 +09:00
parent 4e978360ce
commit a279a81d06
6 changed files with 34 additions and 32 deletions

View File

@@ -2,12 +2,16 @@ import { Album, Playlist, Artist, Song } from './library'
export enum CacheItemType {
coverArt = 'coverArt',
coverArtThumb = 'coverArtThumb',
artistArt = 'artistArt',
artistArtThumb = 'artistArtThumb',
song = 'song',
}
export type CacheItemTypeKey = keyof typeof CacheItemType
export type CacheImageSize = 'thumbnail' | 'original'
export type CacheFile = {
path: string
date: number