feat: Experimental movie playback through plugins

This commit is contained in:
Aleksi Lassila
2024-12-07 14:30:25 +02:00
parent d3818903b3
commit 96d52299b0
22 changed files with 1960 additions and 112 deletions

View File

@@ -89,7 +89,8 @@ export class UserSourcesService {
}
getSourceSettings(user: User, sourceId: string) {
return user.mediaSources?.find((source) => source.id === sourceId)
?.pluginSettings;
return user.mediaSources
?.filter((s) => s?.enabled)
?.find((source) => source.id === sourceId)?.pluginSettings;
}
}

View File

@@ -65,7 +65,6 @@ export class UsersController {
@Param('id') id: string,
@GetUser() callerUser: User,
): Promise<UserDto> {
console.log('callerUser', callerUser);
if (!callerUser.isAdmin && callerUser.id !== id) {
throw new NotFoundException();
}