diff options
| author | Max Isom <[email protected]> | 2021-11-19 12:13:45 -0500 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-11-19 12:13:45 -0500 |
| commit | f5149dfaba64c62f0a9ea6deab600b3d4d9b0f39 (patch) | |
| tree | 8bec60ce93ca8926a28414f972007e2e22a75bdd /src/models/file-cache.ts | |
| parent | 04d8f8d39000b711ec862043b687b8f47e454957 (diff) | |
| download | muse-f5149dfaba64c62f0a9ea6deab600b3d4d9b0f39.tar.xz muse-f5149dfaba64c62f0a9ea6deab600b3d4d9b0f39.zip | |
Move file caching logic to new FileCache service
Also: removes the -re ffmpeg option.
If this option is passed, ffmpeg won't write to fs-capacitor (and the cache file) as fast as possible.
In other words, the cache file won't finish writing until the entire stream has been played.
Diffstat (limited to 'src/models/file-cache.ts')
| -rw-r--r-- | src/models/file-cache.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/file-cache.ts b/src/models/file-cache.ts index 4846ba3..dbac6d3 100644 --- a/src/models/file-cache.ts +++ b/src/models/file-cache.ts @@ -1,13 +1,13 @@ import {Table, Column, PrimaryKey, Model} from 'sequelize-typescript'; @Table -export default class FileCache extends Model<FileCache> { +export default class FileCache extends Model { @PrimaryKey @Column hash!: string; @Column - kbits!: number; + bytes!: number; @Column accessedAt!: Date; |
