diff options
Diffstat (limited to 'server/cmd')
| -rw-r--r-- | server/cmd/listend/main.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/cmd/listend/main.go b/server/cmd/listend/main.go index 0e787e4..495ed03 100644 --- a/server/cmd/listend/main.go +++ b/server/cmd/listend/main.go @@ -345,7 +345,7 @@ func (w *worker) pollOne(ctx context.Context, feedURL string) { // every poll would be work done for ever to reach the same answer -- and the refusal is itself // the record of which episodes speech recognition would have to do. func (w *worker) harvestTranscripts(ctx context.Context, show *store.Show, candidates []*store.Episode) { - taken, declined := 0, 0 + taken, declined, spotted := 0, 0, 0 for _, e := range candidates { if ctx.Err() != nil { return @@ -372,6 +372,7 @@ func (w *worker) harvestTranscripts(ctx context.Context, show *store.Show, candi e.TranscriptAtUnix = time.Now().Unix() e.TranscriptNote = "" taken++ + spotted += result.Ads case result.Note != "": e.TranscriptNote = result.Note e.TranscriptAtUnix = time.Now().Unix() @@ -379,7 +380,10 @@ func (w *worker) harvestTranscripts(ctx context.Context, show *store.Show, candi } } if taken > 0 || declined > 0 { - log.Printf("%s: transcripts -- took %d, declined %d", show.Title, taken, declined) + // The ad count is reported, not acted on. These are candidates read out of the words, + // and nothing publishes them as ranges to skip -- see transcript.Spot. + log.Printf("%s: transcripts -- took %d, declined %d, %d ad candidate(s) in the words", + show.Title, taken, declined, spotted) } } |
