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_providers import get_providers, get_providers_auth, provider_throttle, provider_pool
from get_args import args from get_args import args
from queueconfig import q4ws from queueconfig import q4ws
from subliminal_patch.exceptions import TooManyRequests, APIThrottled
from subliminal.exceptions import DownloadLimitExceeded, ServiceUnavailable
# configure the cache # 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") logging.info("BAZARR All providers are throttled")
return None return None
except Exception as e: 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 return None
else: else:
if not subtitle.is_valid(): 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 return
logging.debug('BAZARR Subtitles file downloaded for this file:' + path)
try: try:
score = round(subtitle.score / max_score * 100, 2) score = round(subtitle.score / max_score * 100, 2)
saved_subtitles = save_subtitles(video.original_path, [subtitle], single=single, saved_subtitles = save_subtitles(video.original_path, [subtitle], single=single,

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

Loading…
Cancel
Save