Skip to content

Commit

Permalink
Improved logic for maintain config.yaml over new docker build or update
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe99barchetta committed Oct 24, 2024
1 parent 3cd87ef commit c6bd9e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions automate_process.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import ast
import os
import asyncio

from config.config import load_env_vars
Expand Down Expand Up @@ -27,8 +25,8 @@ def __init__(self):

self.selected_service = env_vars['SELECTED_SERVICE']
self.max_content = env_vars.get('MAX_CONTENT_CHECKS', 10)
self.max_similar_movie = min(int(os.getenv('MAX_SIMILAR_MOVIE', '3')), 20)
self.max_similar_tv = min(int(os.getenv('MAX_SIMILAR_TV', '2')), 20)
self.max_similar_movie = min(int(env_vars.get('MAX_SIMILAR_MOVIE', '3')), 20)
self.max_similar_tv = min(int(env_vars.get('MAX_SIMILAR_TV', '2')), 20)

# Overseer/Jellyseer client
jellyseer_client = SeerClient(
Expand Down

0 comments on commit c6bd9e3

Please sign in to comment.