From 1d0651c9e8eb043f80331be60145f83e44bb4e49 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 22 Aug 2018 21:32:29 -0400 Subject: [PATCH 1/2] Revert "Fix for path returning None" This reverts commit b6fc720759fd2ee737aea578dc775267f552525b. --- get_movies.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/get_movies.py b/get_movies.py index f378ec2b2..fc43dfb5d 100644 --- a/get_movies.py +++ b/get_movies.py @@ -100,10 +100,7 @@ def update_movies(): for added_movie in added_movies: added_path = c.execute('SELECT path FROM table_movies WHERE tmdbId = ?', (added_movie,)).fetchone() - if added_path == None: - logging.error("No path returned from DB for movie with tmdbId " + added_movie) - else: - store_subtitles_movie(path_replace_movie(added_path[0])) + store_subtitles_movie(path_replace_movie(added_path[0])) # Close database connection db.close() From ba49abfb8db425a3175ce426d7e1057828b02373 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 22 Aug 2018 23:41:58 -0400 Subject: [PATCH 2/2] Fix for missing double quote blocking installation of requirements.txt on Windows when Bazarr path contain a space. --- update_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_modules.py b/update_modules.py index 1c32e2f8f..4f1c25a89 100644 --- a/update_modules.py +++ b/update_modules.py @@ -7,7 +7,7 @@ import sys try: logging.info('Installing Python modules required for Bazarr...') - command = sys.executable + ' -m pip --disable-pip-version-check -q -q install --user -r ' + os.path.join(os.path.dirname(__file__), 'requirements.txt') + command = sys.executable + ' -m pip --disable-pip-version-check -q -q install --user -r "' + os.path.join(os.path.dirname(__file__), 'requirements.txt"') if os.name == 'nt': codepage = check_output("chcp", shell=True, stderr=subprocess.STDOUT)