Skip to content

Commit 37f7eec

Browse files
committed
Fix config #43 #41
1 parent 8dd3540 commit 37f7eec

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY --from=build /app /app
1818

1919
VOLUME [ "/app/config" ]
2020

21-
ENTRYPOINT [ "python3.10", "main.py", "--config", "/app/config/config.json" ]
21+
ENTRYPOINT [ "python3.10", "main.py", "--config", "/app/config/config.yaml" ]

main.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
from apscheduler.schedulers.blocking import BlockingScheduler
88
from apscheduler.triggers.cron import CronTrigger
99

10+
import argparse
11+
parser = argparse.ArgumentParser(description='Jellyfin List Scraper')
12+
parser.add_argument('--config', type=str, help='Path to config file', default='config.yaml')
13+
args = parser.parse_args()
14+
1015
# Load config
11-
config = parse_config('config.yaml', default_value=None)
16+
config = parse_config(args.config, default_value=None)
1217

1318
def main(config):
1419
# Setup jellyfin connection

0 commit comments

Comments
 (0)