diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index d873a5cee..bd3caf4e9 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -205,11 +205,12 @@ def store_subtitles_movie(file): database.execute("UPDATE table_movies SET subtitles=? WHERE path=?", (str(actual_subtitles), path_replace_reverse_movie(file))) - movie = database.execute("SELECT radarrId FROM table_movies WHERE path=?", (path_replace_reverse_movie(file),)) + movie = database.execute("SELECT radarrId FROM table_movies WHERE path=?", + (path_replace_reverse_movie(file),), only_one=True) if len(movie): logging.debug("BAZARR storing those languages to DB: " + str(actual_subtitles)) - list_missing_subtitles_movies(no=movie[0]['radarrId']) + list_missing_subtitles_movies(no=movie['radarrId']) else: logging.debug("BAZARR haven't been able to update existing subtitles to DB : " + str(actual_subtitles)) else: