mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 06:08:00 -04:00
Fix for path returning None
This commit is contained in:
parent
e5d0f43b8e
commit
b6fc720759
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ def update_movies():
|
|||
|
||||
for added_movie in added_movies:
|
||||
added_path = c.execute('SELECT path FROM table_movies WHERE tmdbId = ?', (added_movie,)).fetchone()
|
||||
store_subtitles_movie(path_replace_movie(added_path[0]))
|
||||
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]))
|
||||
|
||||
# Close database connection
|
||||
db.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue