Skip to content

Commit

Permalink
process more episodes only in topic search
Browse files Browse the repository at this point in the history
  • Loading branch information
pidoubleyou committed Jan 7, 2024
1 parent 0c3cb99 commit d2cf832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d2cf832

Please sign in to comment.