mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-03 18:15:50 +00:00
Bug correction
This commit is contained in:
parent
e57e03da32
commit
d9bff60884
3 changed files with 7 additions and 10 deletions
|
@ -2,8 +2,8 @@ bazarr_version = '0.1.1'
|
|||
|
||||
from bottle import route, run, template, static_file, request, redirect
|
||||
import bottle
|
||||
bottle.debug(True)
|
||||
bottle.TEMPLATES.clear()
|
||||
#bottle.debug(True)
|
||||
#bottle.TEMPLATES.clear()
|
||||
|
||||
import os
|
||||
bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/'))
|
||||
|
@ -67,9 +67,9 @@ def configure_logging():
|
|||
f = OneLineExceptionFormatter('%(asctime)s|%(levelname)s|%(message)s|',
|
||||
'%d/%m/%Y %H:%M:%S')
|
||||
fh.setFormatter(f)
|
||||
logging.getLogger("enzyme").setLevel(logging.WARNING)
|
||||
logging.getLogger("enzyme").setLevel(logging.ERROR)
|
||||
logging.getLogger("apscheduler").setLevel(logging.WARNING)
|
||||
logging.getLogger("subliminal").setLevel(logging.WARNING)
|
||||
logging.getLogger("subliminal").setLevel(logging.ERROR)
|
||||
root = logging.getLogger()
|
||||
root.setLevel(log_level)
|
||||
root.addHandler(fh)
|
||||
|
|
|
@ -2,9 +2,6 @@ import os
|
|||
import sqlite3
|
||||
import requests
|
||||
|
||||
from pympler.tracker import SummaryTracker
|
||||
tracker = SummaryTracker()
|
||||
|
||||
from get_general_settings import *
|
||||
from list_subtitles import *
|
||||
|
||||
|
@ -151,4 +148,3 @@ def add_new_episodes():
|
|||
list_missing_subtitles()
|
||||
except:
|
||||
pass
|
||||
tracker.print_diff()
|
||||
|
|
|
@ -83,6 +83,7 @@ def list_missing_subtitles(*no):
|
|||
missing_subtitles = []
|
||||
if episode_subtitles[1] != None:
|
||||
actual_subtitles = ast.literal_eval(episode_subtitles[1])
|
||||
if episode_subtitles[2] != None:
|
||||
desired_subtitles = ast.literal_eval(episode_subtitles[2])
|
||||
actual_subtitles_list = []
|
||||
if desired_subtitles == None:
|
||||
|
|
Loading…
Reference in a new issue