mirror of https://github.com/morpheus65535/bazarr
more merge fixes; import libs
This commit is contained in:
parent
bddc6b7ffe
commit
39a698cae3
|
@ -67,7 +67,7 @@ def check_releases():
|
||||||
else:
|
else:
|
||||||
for release in r.json():
|
for release in r.json():
|
||||||
releases.append([release['name'], release['body']])
|
releases.append([release['name'], release['body']])
|
||||||
with open(os.path.join(config_dir, 'config', 'releases.txt'), 'w') as f:
|
with open(os.path.join(args.config_dir, 'config', 'releases.txt'), 'w') as f:
|
||||||
json.dump(releases, f)
|
json.dump(releases, f)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ if not os.path.exists(os.path.join(args.config_dir, 'log')):
|
||||||
os.mkdir(os.path.join(args.config_dir, 'log'))
|
os.mkdir(os.path.join(args.config_dir, 'log'))
|
||||||
logging.debug("BAZARR Created log folder")
|
logging.debug("BAZARR Created log folder")
|
||||||
|
|
||||||
if not os.path.exists(os.path.join(config_dir, 'config', 'releases.txt')):
|
if not os.path.exists(os.path.join(args.config_dir, 'config', 'releases.txt')):
|
||||||
from check_update import check_releases
|
from check_update import check_releases
|
||||||
check_releases()
|
check_releases()
|
||||||
logging.debug("BAZARR Created releases file")
|
logging.debug("BAZARR Created releases file")
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import gc
|
import gc
|
||||||
import sys
|
import sys
|
||||||
|
import libs
|
||||||
import bottle
|
import bottle
|
||||||
import itertools
|
import itertools
|
||||||
import operator
|
import operator
|
||||||
|
|
Loading…
Reference in New Issue