示例#1
0
文件: main.py 项目: nlpsuge/bazarr
def check_update():
    if not args.no_update:
        check_and_apply_update()

    return '', 200
示例#2
0
文件: main.py 项目: nlpsuge/bazarr
from get_languages import load_language_in_db, language_from_alpha3, language_from_alpha2, alpha2_from_alpha3, \
    alpha3_from_alpha2
from flask import make_response, request, redirect, abort, render_template, Response, session, flash, url_for, \
    send_file, stream_with_context

from get_series import *
from get_episodes import *
from get_movies import *

from check_update import check_and_apply_update
from server import app, webserver
from functools import wraps

# Check and install update on startup when running on Windows from installer
if args.release_update:
    check_and_apply_update()

configure_proxy_func()

# Reset restart required warning on start
database.execute("UPDATE system SET configured='0', updated='0'")

# Load languages in database
load_language_in_db()

login_auth = settings.auth.type

update_notifier()


def check_credentials(user, pw):