speeches: always parse protocol responses, the wanted anchors grow over time
The reparse after the XXIV-XXVII fix left 12.7k speeches without text: their protocol had been fetched earlier for other anchors, and an unchanged body was never parsed again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95355305d4
commit
d2039a9dc3
1 file changed
+3
-1
@@ -105,7 +105,9 @@ class SpeechTexts(Adapter):
|
|||||||
by_file[file].append(anchor)
|
by_file[file].append(anchor)
|
||||||
ctx.stats["protocols_pending"] = len(by_file)
|
ctx.stats["protocols_pending"] = len(by_file)
|
||||||
for file, anchors in list(by_file.items())[:limit]:
|
for file, anchors in list(by_file.items())[:limit]:
|
||||||
yield Request(url=file, kind="protocol", meta={"anchors": sorted(set(anchors))})
|
# always parse: the anchors wanted from a file grow over time, and the archive keeps the first set only
|
||||||
|
yield Request(url=file, kind="protocol", meta={"anchors": sorted(set(anchors))},
|
||||||
|
conditional=False, skip_unchanged=False)
|
||||||
|
|
||||||
def parse(self, ctx: RunContext, response: Response) -> Iterator[Any]:
|
def parse(self, ctx: RunContext, response: Response) -> Iterator[Any]:
|
||||||
anchors = response.meta["anchors"]
|
anchors = response.meta["anchors"]
|
||||||
|
|||||||
Reference in new issue
Block a user