From 18603ee29d4c4f59958e4c9423a8ab5cec15f851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 16 Nov 2017 13:33:37 -0500 Subject: [PATCH] Test --- get_subtitle.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/get_subtitle.py b/get_subtitle.py index d16101b84..a93902234 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -12,7 +12,7 @@ from utils import * region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')}) def download_subtitle(path, language, hi, providers): - video = scan_video(path) + #video = scan_video(path) #best_subtitles = download_best_subtitles([video], {Language(language)}, providers=providers, hearing_impaired=hi) #try: # best_subtitle = best_subtitles[video][0] @@ -26,12 +26,12 @@ def download_subtitle(path, language, hi, providers): #except: # return None - del video - del best_subtitles - del result - del downloaded_provider - del downloaded_language - del message + #del video + #del best_subtitles + #del result + #del downloaded_provider + #del downloaded_language + #del message def series_download_subtitles(no): conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))