Use scheduler instead of direct call to function while updating all episodes

pull/56/merge
morpheus65535 7 years ago
parent 017b8746c2
commit bb65216ddf

@ -55,8 +55,8 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
except: except:
pass pass
else: else:
from get_episodes import update_all_episodes from scheduler import execute_now
update_all_episodes() execute_now('update_all_episodes')
# Commit change to db # Commit change to db
db.commit() db.commit()

Loading…
Cancel
Save