diff options
author | halali <[email protected]> | 2018-08-23 21:58:15 +0200 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-08-23 15:58:15 -0400 |
commit | db2378943fad97cfef80cca10e2db675036b0941 (patch) | |
tree | 4360ea8f7da6022febc25dc08ae5e1de2e1074ac /get_episodes.py | |
parent | 9b11324c850964186510211212e37df66c09613e (diff) | |
download | bazarr-db2378943fad97cfef80cca10e2db675036b0941.tar.gz bazarr-db2378943fad97cfef80cca10e2db675036b0941.zip |
Move settings from Database to Config file (#126)
* Move settings from Database to Config file
* Delete unused config and forgot upload init
* Fix
* Update get_subtitles and fix provider auth
* Revert "Update get_subtitles and fix provider auth"
This reverts commit c904bf6b5a61b291d4e5764a885578e66ae7d5d3.
* Update get_sebtitles
* more fixes
* Update requirements
Diffstat (limited to 'get_episodes.py')
-rw-r--r-- | get_episodes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/get_episodes.py b/get_episodes.py index 583fd6189..e3b16e115 100644 --- a/get_episodes.py +++ b/get_episodes.py @@ -5,7 +5,7 @@ import sqlite3 import requests
import logging
-from get_general_settings import path_replace
+from get_settings import path_replace
from list_subtitles import list_missing_subtitles, store_subtitles, series_full_scan_subtitles, movies_full_scan_subtitles
def update_all_episodes():
@@ -21,9 +21,9 @@ def update_all_movies(): logging.info('All missing movie subtitles updated in database.')
def sync_episodes():
- from get_sonarr_settings import get_sonarr_settings
- url_sonarr = get_sonarr_settings()[0]
- apikey_sonarr = get_sonarr_settings()[2]
+ from get_settings import get_sonarr_settings
+ url_sonarr = get_sonarr_settings()[6]
+ apikey_sonarr = get_sonarr_settings()[4]
# Open database connection
db = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30)
|