Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Docker Image CI for GHCR

on: push

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push the Image
run: |
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

#tmp comment
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,8 @@ torbox
movies
series
test-*
*.json
*.json

# KC
.github/workflows/docker-build.yml
.github/workflows/release-please.yml
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions library/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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