diff --git a/trakt_tools/tasks/history/duplicates/merge/executor.py b/trakt_tools/tasks/history/duplicates/merge/executor.py index 59b7a9a..d478e38 100644 --- a/trakt_tools/tasks/history/duplicates/merge/executor.py +++ b/trakt_tools/tasks/history/duplicates/merge/executor.py @@ -38,6 +38,7 @@ def process_shows(self, profile, shows): # Remove history records for x in six.moves.xrange(0, len(ids), self.batch_size): + profile._rate_limit() self._remove_records(ids[x:x + self.batch_size]) print() @@ -65,6 +66,7 @@ def process_movies(self, profile, movies): # Remove history records for x in six.moves.xrange(0, len(ids), self.batch_size): + profile._rate_limit() self._remove_records(ids[x:x + self.batch_size]) print() diff --git a/trakt_tools/tasks/history/duplicates/merge/main.py b/trakt_tools/tasks/history/duplicates/merge/main.py index cf28abd..b2af529 100644 --- a/trakt_tools/tasks/history/duplicates/merge/main.py +++ b/trakt_tools/tasks/history/duplicates/merge/main.py @@ -106,7 +106,10 @@ def execute(self, profile, review=None): review = boolean_input('Review every action?', default=True) print() - executor = Executor(review) + executor = Executor( + review, + rate_limit=self.rate_limit + ) if not executor.process_shows(profile, self.scanner.shows): return False