Skip to content

Commit f5ae6d7

Browse files
committed
Remove progress reporting from the import task, this may be done in a follow up commit.
1 parent a789ef1 commit f5ae6d7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

beets/importer/stages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def lookup_candidates(session: ImportSession, task: ImportTask):
141141

142142
# Restrict the initial lookup to IDs specified by the user via the -m
143143
# option. Currently all the IDs are passed onto the tasks directly.
144-
task.lookup_candidates(session.config["search_ids"].as_str_seq())
144+
task.lookup_candidates(session, session.config["search_ids"])
145145

146146

147147
@pipeline.stage

beets/importer/tasks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,6 @@ def finalize(self, session: ImportSession):
316316
if not self.skip:
317317
self._emit_imported(session.lib)
318318

319-
session.task_finalized()
320-
321319
def cleanup(self, copy=False, delete=False, move=False):
322320
"""Remove and prune imported paths."""
323321
# Do not delete any files or prune directories when skipping.
@@ -355,7 +353,6 @@ def handle_created(self, session: ImportSession):
355353
else:
356354
# The plugins gave us a list of lists of tasks. Flatten it.
357355
tasks = [t for inner in tasks for t in inner]
358-
session.tasks_created(tasks)
359356
return tasks
360357

361358
def lookup_candidates(self, session: ImportSession, search_ids: list[str]) -> None:
@@ -367,7 +364,6 @@ def lookup_candidates(self, session: ImportSession, search_ids: list[str]) -> No
367364
self.cur_artist, self.cur_album, (self.candidates, self.rec) = (
368365
autotag.tag_album(self.items, search_ids=search_ids)
369366
)
370-
session.task_candidates_found()
371367

372368
def find_duplicates(self, lib: library.Library) -> list[library.Album]:
373369
"""Return a list of albums from `lib` with the same artist and
@@ -631,7 +627,6 @@ def choose_match(self, session):
631627
choice = session.choose_match(self)
632628
self.set_choice(choice)
633629
session.log_choice(self)
634-
session.task_match_chosen()
635630

636631
def reload(self):
637632
"""Reload albums and items from the database."""
@@ -691,7 +686,6 @@ def lookup_candidates(self, session: ImportSession, search_ids: list[str]) -> No
691686
self.candidates, self.rec = autotag.tag_item(
692687
self.item, search_ids=search_ids
693688
)
694-
session.task_candidates_found()
695689

696690
def find_duplicates(self, lib: library.Library) -> list[library.Item]: # type: ignore[override] # Need splitting Singleton and Album tasks into separate classes
697691
"""Return a list of items from `lib` that have the same artist

0 commit comments

Comments
 (0)