yield 3-tuples for Message.Directory
adapt tuples to the same length and semantics as other messages
This commit is contained in:
@@ -57,7 +57,7 @@ class XfolioWorkExtractor(XfolioExtractor):
|
||||
files = self._extract_files(html, work)
|
||||
work["count"] = len(files)
|
||||
|
||||
yield Message.Directory, work
|
||||
yield Message.Directory, "", work
|
||||
for work["num"], file in enumerate(files, 1):
|
||||
file.update(work)
|
||||
yield Message.Url, file["url"], file
|
||||
|
||||
Reference in New Issue
Block a user