From 561257b53d0f8eebf289d6d350ee645b2ee792ee Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Mon, 17 Nov 2025 22:50:56 +0000 Subject: [PATCH 1/7] TypeError Fix: MountRefreshTimes.fast.name passed str, set to MountRefreshTimes.fast.value --- library/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/app.py b/library/app.py index 393722a..06328f0 100644 --- a/library/app.py +++ b/library/app.py @@ -25,9 +25,8 @@ class MountRefreshTimes(Enum): if SCAN_METADATA: print("!!! Metadata scanning is enabled. This may slow down the processing of files. !!!") - if MOUNT_REFRESH_TIME == "instant" and SCAN_METADATA: - print("!!! Using instant mount refresh time without metadata scanning may lead to excessive API calls. Falling back to 'fast' refresh time. !!!") - MOUNT_REFRESH_TIME = MountRefreshTimes.fast.name + print("!!! Using instant mount refresh time with metadata scanning may lead to excessive API calls. Falling back to 'fast' refresh time. !!!") + MOUNT_REFRESH_TIME = MountRefreshTimes.fast.value else: - MOUNT_REFRESH_TIME = MountRefreshTimes[MOUNT_REFRESH_TIME].value + MOUNT_REFRESH_TIME = MountRefreshTimes[MOUNT_REFRESH_TIME].value \ No newline at end of file From 26ac39f6f99b3c10a48ab3fe35225a73706a20ab Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:11:33 +0000 Subject: [PATCH 2/7] added workflow --- .gitignore | 5 ++++- publish-ghcr.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 publish-ghcr.yml diff --git a/.gitignore b/.gitignore index 72a5b29..965c168 100644 --- a/.gitignore +++ b/.gitignore @@ -178,4 +178,7 @@ torbox movies series test-* -*.json \ No newline at end of file +*.json + +# KC +publish-ghcr.yaml \ No newline at end of file diff --git a/publish-ghcr.yml b/publish-ghcr.yml new file mode 100644 index 0000000..c01dbb7 --- /dev/null +++ b/publish-ghcr.yml @@ -0,0 +1,14 @@ +name: Docker Image CI for GHCR + +on: push + +jobs: + build_and_publish: + runs-on: ubuntu-ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and push the Image + run: | + docker login --username KeiranChristie --password ${{secrets.GH_PAT}} ghcr.ghcr.io + docker build . --tag ghcr.io/keiranchristie/torbox-media-center:latest + docker push ghcr.io/keiranchristie/torbox-media-center:latest From 4cd130306f233963ef6696728f94e31d66ee0cb4 Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:16:33 +0000 Subject: [PATCH 3/7] added workflow --- .gitignore | 3 +-- publish-ghcr.yml | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 965c168..8f51900 100644 --- a/.gitignore +++ b/.gitignore @@ -180,5 +180,4 @@ series test-* *.json -# KC -publish-ghcr.yaml \ No newline at end of file +# KC \ No newline at end of file diff --git a/publish-ghcr.yml b/publish-ghcr.yml index c01dbb7..87ef939 100644 --- a/publish-ghcr.yml +++ b/publish-ghcr.yml @@ -12,3 +12,5 @@ jobs: docker login --username KeiranChristie --password ${{secrets.GH_PAT}} ghcr.ghcr.io docker build . --tag ghcr.io/keiranchristie/torbox-media-center:latest docker push ghcr.io/keiranchristie/torbox-media-center:latest + +#tmp comment \ No newline at end of file From 6b393403233b4ccac64133e2dcaa27c87ab42cf1 Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:21:11 +0000 Subject: [PATCH 4/7] fixed typo --- .gitignore | 3 ++- publish-ghcr.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8f51900..3507cd3 100644 --- a/.gitignore +++ b/.gitignore @@ -180,4 +180,5 @@ series test-* *.json -# KC \ No newline at end of file +# KC +./workflows/* \ No newline at end of file diff --git a/publish-ghcr.yml b/publish-ghcr.yml index 87ef939..a68e94b 100644 --- a/publish-ghcr.yml +++ b/publish-ghcr.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - name: Build and push the Image run: | - docker login --username KeiranChristie --password ${{secrets.GH_PAT}} ghcr.ghcr.io + docker login --username KeiranChristie --password ${{ secrets.GH_PAT }} ghcr.io docker build . --tag ghcr.io/keiranchristie/torbox-media-center:latest docker push ghcr.io/keiranchristie/torbox-media-center:latest From 69ff6b463d6b17c0ad60e4bab0bf6938ac0ef5dd Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:25:15 +0000 Subject: [PATCH 5/7] fixed more typos --- publish-ghcr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish-ghcr.yml b/publish-ghcr.yml index a68e94b..6455be1 100644 --- a/publish-ghcr.yml +++ b/publish-ghcr.yml @@ -4,7 +4,7 @@ on: push jobs: build_and_publish: - runs-on: ubuntu-ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Build and push the Image @@ -13,4 +13,4 @@ jobs: docker build . --tag ghcr.io/keiranchristie/torbox-media-center:latest docker push ghcr.io/keiranchristie/torbox-media-center:latest -#tmp comment \ No newline at end of file +#tmp comment From aae277cc18da282bb0c6dc32569e6fbec595dac1 Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:30:17 +0000 Subject: [PATCH 6/7] added publish-ghcr.yml to workflows and added other workflows to gitignore --- publish-ghcr.yml => .github/workflows/publish-ghcr.yml | 0 .gitignore | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename publish-ghcr.yml => .github/workflows/publish-ghcr.yml (100%) diff --git a/publish-ghcr.yml b/.github/workflows/publish-ghcr.yml similarity index 100% rename from publish-ghcr.yml rename to .github/workflows/publish-ghcr.yml diff --git a/.gitignore b/.gitignore index 3507cd3..350191d 100644 --- a/.gitignore +++ b/.gitignore @@ -181,4 +181,5 @@ test-* *.json # KC -./workflows/* \ No newline at end of file +.github/workflows/docker-build.yml +.github/workflows/release-please.yml \ No newline at end of file From 4f67aef212ef50052b19a4c0c0efc42c180043c6 Mon Sep 17 00:00:00 2001 From: KeiranChristie Date: Tue, 18 Nov 2025 00:31:15 +0000 Subject: [PATCH 7/7] added other workflows to backup folder --- {.github/workflows => backup}/docker-build.yml | 0 {.github/workflows => backup}/release-please.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {.github/workflows => backup}/docker-build.yml (100%) rename {.github/workflows => backup}/release-please.yml (100%) diff --git a/.github/workflows/docker-build.yml b/backup/docker-build.yml similarity index 100% rename from .github/workflows/docker-build.yml rename to backup/docker-build.yml diff --git a/.github/workflows/release-please.yml b/backup/release-please.yml similarity index 100% rename from .github/workflows/release-please.yml rename to backup/release-please.yml