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/inversify.config.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/inversify.config.ts')
| -rw-r--r-- | src/inversify.config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inversify.config.ts b/src/inversify.config.ts index 95ed234..c277f7a 100644 --- a/src/inversify.config.ts +++ b/src/inversify.config.ts @@ -28,6 +28,7 @@ import Shuffle from './commands/shuffle.js'; import Skip from './commands/skip.js'; import Unskip from './commands/unskip.js'; import ThirdParty from './services/third-party.js'; +import FileCacheProvider from './services/file-cache.js'; import KeyValueCacheProvider from './services/key-value-cache.js'; const container = new Container(); @@ -76,6 +77,7 @@ container.bind(TYPES.Config).toConstantValue(new ConfigProvider()); // Static libraries container.bind(TYPES.ThirdParty).to(ThirdParty); +container.bind(TYPES.FileCache).to(FileCacheProvider); container.bind(TYPES.KeyValueCache).to(KeyValueCacheProvider); export default container; |
