diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9f42ab2..d2b0c91 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -73,10 +73,17 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/dvrprocess/common/__init__.py b/dvrprocess/common/__init__.py index 2b29329..fa90d58 100644 --- a/dvrprocess/common/__init__.py +++ b/dvrprocess/common/__init__.py @@ -421,7 +421,10 @@ def assert_not_transcoding(input_file, tempfilename=None, exit=True): if (time.time() - os.path.getmtime(tempfilename)) < 172800: logger.info(f"Already transcoding, skipping {input_file} ({tempfilename})") # We don't want clean up to remove these files and mess up other processes - TEMPFILENAMES.remove(tempfilename) + try: + TEMPFILENAMES.remove(tempfilename) + except ValueError: + pass if exit: sys.exit(0) else: