logging.debug('BAZARR Subtitles file downloaded for this file:'+path)
pdownload_result=False
forsubtitleinsubtitles_list:
download_result=p.download_subtitle(subtitle)
ifdownload_result==True:
logging.debug('BAZARR Subtitles file downloaded from '+str(subtitle.provider_name)+' for this file: '+path)
break
else:
logging.warning('BAZARR Subtitles file skipped from '+str(subtitle.provider_name)+' for this file: '+path+' because no content was returned by the provider (probably throttled).')
continue
ifdownload_result==False:
logging.error('BAZARR Tried to download a subtitles for file: '+path+" but we weren't able to do it this time (probably being throttled). Going to retry on next search.")
returnNone
exceptExceptionase:
logging.exception('BAZARR Error downloading subtitles for this file '+path)
logging.error('BAZARR Tried to manually download a subtitles for file: '+path+' but it had no content. Going to retry on next search.')
logging.error('BAZARR Tried to manually download a subtitles for file: '+path+" but we weren't able to do (probably throttled by ' + str(subtitle.provider_name) + '. Please retry later or select a subtitles from another provider.")
returnNone
logging.debug('BAZARR Ended manually downloading subtitles for file: '+path)