Skip to content

Commit

Permalink
Allow = in URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunoo committed Aug 30, 2020
1 parent 81565c9 commit cb28ceb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## v3.0.2 (2020-08-30)

### Changes

- Allow `=` in the URL for HTTP automation for systems that require it. Everything after the `=` will be ignored.

## v3.0.1 (2020-08-25)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Homebridge Camera FFmpeg",
"name": "homebridge-camera-ffmpeg",
"version": "3.0.1",
"version": "3.0.2",
"description": "Homebridge Plugin Providing FFmpeg-based Camera Support",
"main": "dist/index.js",
"license": "ISC",
Expand Down
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ class FfmpegPlatform implements DynamicPlatformPlugin {
this.api = api;
this.config = config as unknown as FfmpegPlatformConfig;

if (!config) {
return;
}

if (this.config.cameras) {
this.config.cameras.forEach((cameraConfig: CameraConfig) => {
let error = false;
Expand Down Expand Up @@ -352,7 +348,7 @@ class FfmpegPlatform implements DynamicPlatformPlugin {
if (request.url) {
const parseurl = url.parse(request.url);
if (parseurl.pathname && parseurl.query) {
const name = decodeURIComponent(parseurl.query);
const name = decodeURIComponent(parseurl.query).split('=')[0];
results = this.automationHandler(parseurl.pathname, name);
}
}
Expand Down

0 comments on commit cb28ceb

Please sign in to comment.