From f3d744367882857e3c8222cc78cdee4725f6c12d Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:35:48 +0000 Subject: [PATCH 1/3] Add auto compile tsc --- .github/workflows/lint_and_test.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 3cf9b0f..00bfaf6 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -5,7 +5,7 @@ on: branches: ['**'] jobs: - build: + test: strategy: matrix: node-version: [18.x] @@ -33,3 +33,30 @@ jobs: - run: npm run checkPlugins - run: npm run lint - run: npm run test + - run: npm run test2 + + auto_compile_and_push: + if: github.ref != 'refs/heads/master' + needs: [ + test + ] + runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. + contents: write + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + + - run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Apply auto-build changes \ No newline at end of file From e3f4892a8e7d67ba0d02f09887b1374f93791854 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:37:29 +0000 Subject: [PATCH 2/3] Remove error script --- .github/workflows/lint_and_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 00bfaf6..2747f26 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -33,7 +33,6 @@ jobs: - run: npm run checkPlugins - run: npm run lint - run: npm run test - - run: npm run test2 auto_compile_and_push: if: github.ref != 'refs/heads/master' From 19e10dfd036359e1ab5feeed3fb1293d85e610ea Mon Sep 17 00:00:00 2001 From: HaveAGitGat Date: Wed, 15 Nov 2023 17:39:18 +0000 Subject: [PATCH 3/3] Apply auto-build changes --- .../ffmpegCommandEnsureAudioStream/1.0.0/index.js | 4 ++++ .../CommunityFlowPlugins/video/checkVideoCodec/1.0.0/index.js | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js index b3ff0eb..ffaf341 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js @@ -27,6 +27,7 @@ var details = function () { return ({ 'eac3', 'dca', 'flac', + 'libopus', 'mp2', 'libmp3lame', 'truehd', @@ -148,6 +149,9 @@ var plugin = function (args) { if (audioEncoder === 'libmp3lame') { audioCodec = 'mp3'; } + if (audioEncoder === 'libopus') { + audioCodec = 'opus'; + } var addedOrExists = attemptMakeStream({ args: args, langTag: langTag, diff --git a/FlowPlugins/CommunityFlowPlugins/video/checkVideoCodec/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/video/checkVideoCodec/1.0.0/index.js index 9eb963c..bd96c7c 100644 --- a/FlowPlugins/CommunityFlowPlugins/video/checkVideoCodec/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/video/checkVideoCodec/1.0.0/index.js @@ -33,8 +33,7 @@ var details = function () { return ({ 'mpeg2video', 'mjpeg', 'flv', - 'mpeg4', - 'theora' + 'theora', ], }, tooltip: 'Specify the codec check for',