mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Use scheduler instead of direct call to function while updating all episodes
This commit is contained in:
parent
017b8746c2
commit
bb65216ddf
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
|||
except:
|
||||
pass
|
||||
else:
|
||||
from get_episodes import update_all_episodes
|
||||
update_all_episodes()
|
||||
from scheduler import execute_now
|
||||
execute_now('update_all_episodes')
|
||||
|
||||
# Commit change to db
|
||||
db.commit()
|
||||
|
|
Loading…
Reference in a new issue