[inkbunny] add 'num' field (#283)

This commit is contained in:
Mike Fährmann 2020-07-30 18:27:25 +02:00
parent fbc4278fe4
commit 0762d6b29c
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -48,7 +48,7 @@ class InkbunnyExtractor(Extractor):
del post["files"]
yield Message.Directory, post
for file in files:
for post["num"], file in enumerate(files, 1):
post.update(file)
post["deleted"] = (file["deleted"] == "t")
post["date"] = text.parse_datetime(