Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions trakt_tools/tasks/history/duplicates/merge/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
5 changes: 4 additions & 1 deletion trakt_tools/tasks/history/duplicates/merge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down