Merge remote-tracking branch 'origin/subliminal_patch' into subliminal_patch

# Conflicts:
#	bazarr/get_subtitle.py
#	bazarr/main.py
pull/489/head
Halali 6 years ago
commit 5998b4dab3

@ -32,8 +32,6 @@ from notifier import send_notifications, send_notifications_movie
from get_providers import get_providers, get_providers_auth, provider_throttle, provider_pool
from get_args import args
from queueconfig import q4ws
from subliminal_patch.exceptions import TooManyRequests, APIThrottled
from subliminal.exceptions import DownloadLimitExceeded, ServiceUnavailable
# configure the cache
@ -334,12 +332,14 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a
logging.info("BAZARR All providers are throttled")
return None
except Exception as e:
logging.exception('BAZARR Error downloading subtitles for this file ' + path + e)
logging.exception('BAZARR Error downloading subtitles for this file ' + path)
return None
else:
if not subtitle.is_valid():
logging.exception('BAZARR Error downloading subtitles for this file ' + path)
q4ws.append('No valid subtitles file found for this file: ' + path)
logging.exception('BAZARR No valid subtitles file found for this file: ' + path)
return
logging.debug('BAZARR Subtitles file downloaded for this file:' + path)
try:
score = round(subtitle.score / max_score * 100, 2)
saved_subtitles = save_subtitles(video.original_path, [subtitle], single=single,

@ -1,5 +1,7 @@
# coding=utf-8
bazarr_version = '0.7.1'
import gc
import sys
import libs
@ -54,7 +56,6 @@ sys.setdefaultencoding('utf8')
gc.enable()
update_notifier()
bazarr_version = '0.7.0.5'
os.environ["SZ_USER_AGENT"] = "Bazarr/1"
configure_logging(settings.general.getboolean('debug') or args.debug)

Loading…
Cancel
Save