summaryrefslogtreecommitdiffhomepage
path: root/bazarr/get_movies.py
diff options
context:
space:
mode:
Diffstat (limited to 'bazarr/get_movies.py')
-rw-r--r--bazarr/get_movies.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/bazarr/get_movies.py b/bazarr/get_movies.py
index 8749ff6fd..0ae5b17c2 100644
--- a/bazarr/get_movies.py
+++ b/bazarr/get_movies.py
@@ -5,7 +5,6 @@ import requests
import logging
import operator
from functools import reduce
-from gevent import sleep
from peewee import DoesNotExist
from config import settings, url_radarr
@@ -64,7 +63,6 @@ def update_movies(send_event=True):
# Build new and updated movies
movies_count = len(movies)
for i, movie in enumerate(movies):
- sleep()
if send_event:
show_progress(id='movies_progress',
header='Syncing movies...',
@@ -96,7 +94,6 @@ def update_movies(send_event=True):
removed_movies = list(set(current_movies_db_list) - set(current_movies_radarr))
for removed_movie in removed_movies:
- sleep()
TableMovies.delete().where(TableMovies.tmdbId == removed_movie).execute()
# Update movies in DB
@@ -129,7 +126,6 @@ def update_movies(send_event=True):
movies_to_update_list = [i for i in movies_to_update if i not in movies_in_db_list]
for updated_movie in movies_to_update_list:
- sleep()
TableMovies.update(updated_movie).where(TableMovies.tmdbId == updated_movie['tmdbId']).execute()
altered_movies.append([updated_movie['tmdbId'],
updated_movie['path'],
@@ -138,7 +134,6 @@ def update_movies(send_event=True):
# Insert new movies in DB
for added_movie in movies_to_add:
- sleep()
result = TableMovies.insert(added_movie).on_conflict(action='IGNORE').execute()
if result > 0:
altered_movies.append([added_movie['tmdbId'],
@@ -153,7 +148,6 @@ def update_movies(send_event=True):
# Store subtitles for added or modified movies
for i, altered_movie in enumerate(altered_movies, 1):
- sleep()
store_subtitles_movie(altered_movie[1], path_mappings.path_replace_movie(altered_movie[1]))
logging.debug('BAZARR All movies synced from Radarr into database.')