From e4be8ebb3e83e0fc98b8774458abc51c7030634f Mon Sep 17 00:00:00 2001 From: Halali Date: Mon, 25 Mar 2019 07:44:43 +0100 Subject: [PATCH] Imports clean up --- bazarr/get_subtitle.py | 3 --- bazarr/helper.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index e7a412a9c..0cc6786c1 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -11,11 +11,9 @@ import time import cPickle as pickle import codecs import types -import chardet import re import subliminal import subliminal_patch -from ast import literal_eval from datetime import datetime, timedelta from subzero.language import Language from subzero.video import parse_video @@ -25,7 +23,6 @@ from subliminal_patch.core import SZAsyncProviderPool, download_best_subtitles, from subliminal_patch.score import compute_score from subliminal.refiners.tvdb import series_re from get_languages import language_from_alpha3, alpha2_from_alpha3, alpha3_from_alpha2, language_from_alpha2 -from bs4 import UnicodeDammit from config import settings from helper import path_replace, path_replace_movie, path_replace_reverse, \ path_replace_reverse_movie, pp_replace, get_target_folder, force_unicode diff --git a/bazarr/helper.py b/bazarr/helper.py index 434e0dd1c..2116716b2 100644 --- a/bazarr/helper.py +++ b/bazarr/helper.py @@ -5,10 +5,10 @@ import re import types import logging import sqlite3 +import chardet +from bs4 import UnicodeDammit from config import settings -from get_args import args -from get_languages import alpha2_from_language def path_replace(path):