( pluginId: string, displayName: string, )
| 18 | import { ytdlpHost } from '../../services/ytdlpHost'; |
| 19 | |
| 20 | export const createPluginAPI = ( |
| 21 | pluginId: string, |
| 22 | displayName: string, |
| 23 | ): NuclearPluginAPI => { |
| 24 | return new NuclearPluginAPI({ |
| 25 | settingsHost: createPluginSettingsHost(pluginId, displayName), |
| 26 | queueHost, |
| 27 | providersHost, |
| 28 | streamingHost, |
| 29 | metadataHost, |
| 30 | httpHost, |
| 31 | ytdlpHost, |
| 32 | favoritesHost, |
| 33 | playbackHost, |
| 34 | playlistsHost, |
| 35 | dashboardHost, |
| 36 | discoveryHost, |
| 37 | eventsHost: eventBus, |
| 38 | shellHost, |
| 39 | widgetRegistry, |
| 40 | pluginId, |
| 41 | loggerHost: createLoggerHost(pluginId), |
| 42 | }); |
| 43 | }; |
no test coverage detected