Add support for go2rtc for non-Frigate cameras

This commit is contained in:
Dermot Duffy
2023-10-07 23:27:10 -07:00
parent db50e36c76
commit b43389ed5b
14 changed files with 409 additions and 62 deletions
+14
View File
@@ -435,3 +435,17 @@ it('should not require title controls to specify all options', () => {
}),
).toBeTruthy();
});
it('should strip trailing slashes from go2rtc url', () => {
const config = createConfig({
cameras: [
{
go2rtc: {
url: 'https://my-custom-go2rtc//',
},
},
],
});
expect(config).toBeTruthy();
expect(config.cameras[0].go2rtc.url).toBe('https://my-custom-go2rtc');
});