Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/955 #956

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
process more episodes only in topic search
pidoubleyou committed Jan 7, 2024
commit d2cf83226852fa30f1e3aeae8a90377e96353663
Original file line number Diff line number Diff line change
@@ -107,14 +107,15 @@ protected RecursiveTask<Set<Film>> createCrawlerTask() {
shows.addAll(getArchiveEntries());
addShows(shows, getLetterEntries());
processMoreEpisodes = true;
} else {
addShows(shows, getDaysEntries());
processMoreEpisodes = false;
}
addShows(shows, getDaysEntries());

printMessage(
ServerMessages.DEBUG_ALL_SENDUNG_FOLGEN_COUNT, getSender().getName(), shows.size());
getAndSetMaxCount(shows.size());

// TODO Problem mit Sport aktuell u.ä. lösen => more episodes pro show setzen (topic ja, day nein?)
return new OrfFilmDetailTask(this, shows, processMoreEpisodes);
} catch (final InterruptedException ex) {
LOG.debug("{} crawler interrupted.", getSender().getName(), ex);
Original file line number Diff line number Diff line change
@@ -163,7 +163,7 @@ protected void processDocument(final TopicUrlDTO aUrlDto, final Document aDocume
@Override
protected AbstractUrlTask<Film, TopicUrlDTO> createNewOwnInstance(
final Queue<TopicUrlDTO> aUrlsToCrawl) {
return createNewOwnInstance(aUrlsToCrawl, true);
return createNewOwnInstance(aUrlsToCrawl, processMoreEpisodes);
}

private AbstractUrlTask<Film, TopicUrlDTO> createNewOwnInstance(final Queue<TopicUrlDTO> urlsToCrawl, boolean processMoreEpisodes) {