Skip to content

feat(custom-scraper): add Skip button for sub-scrapers with no results#1979

Open
Arny80Hexa wants to merge 1 commit intoKomet:masterfrom
Arny80Hexa:feat/custom-scraper-skip-button
Open

feat(custom-scraper): add Skip button for sub-scrapers with no results#1979
Arny80Hexa wants to merge 1 commit intoKomet:masterfrom
Arny80Hexa:feat/custom-scraper-skip-button

Conversation

@Arny80Hexa
Copy link
Copy Markdown
Contributor

Summary

  • Add a "Skip" button to the movie search dialog for the Custom Movie Scraper
  • When a sub-scraper returns no results (e.g. movie not listed on VideoBuster), users can skip it and continue with the remaining scrapers
  • The button appears whenever the Custom Movie Scraper is active, allowing skipping of any scraper including the title scraper
  • The backend already handles missing scrapers gracefully (CustomMovieScraper::loadMovie() silently skips any scraper not in the customScraperIds map) — this change only adds the missing UI capability

Fixes #1978

Test plan

  • Select "Custom Movie Scraper", verify Skip button appears
  • Search a movie, double-click TMDb result, skip VideoBuster → remaining scrapers work
  • Search something TMDb doesn't find, skip it → sub-scrapers proceed
  • Switch to a non-custom scraper → Skip button disappears
  • Skip all scrapers → dialog closes without crash

Developed with AI assistance (Claude Code / Opus 4.6).

@Arny80Hexa Arny80Hexa requested a review from bugwelle as a code owner March 22, 2026 19:16
Copy link
Copy Markdown
Collaborator

@bugwelle bugwelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!

Thank you for this PR.

See one inline comment regarding method names. Besides that: Thanks! Tested locally and works. :)

Comment thread src/ui/movies/MovieSearch.cpp Outdated
connect(ui->movieSearchWidget,
&MovieSearchWidget::sigCustomScrapingChanged,
this,
&MovieSearch::onCustomScrapingChanged);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the method name is misleading. Isn't it rather a onScraperChanged(bool isCustomerScraper)?

When using the Custom Movie Scraper, each sub-scraper requires the
user to select a search result before proceeding. If a sub-scraper
returns no results (e.g. the movie doesn't exist on VideoBuster),
the user was stuck with no way to continue.

Add a Skip button that appears whenever the Custom Movie Scraper is
active. It allows skipping any scraper — including the title scraper
— and advancing to the next one. The backend already handles missing
scrapers gracefully (CustomMovieScraper::loadMovie silently skips any
scraper not in the customScraperIds map).

Fixes Komet#1978

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Arny80Hexa Arny80Hexa force-pushed the feat/custom-scraper-skip-button branch from 88f5b50 to ce4796f Compare March 24, 2026 21:28
@Arny80Hexa
Copy link
Copy Markdown
Contributor Author

Renamed sigCustomScrapingChanged/onCustomScrapingChanged to sigScraperChanged/onScraperChanged as suggested. Also rebased on current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(custom-scraper): add Skip button for sub-scrapers with no results

2 participants