[deviantart] convert 'published_time' to int (fixes #108)

The 'published_time' field (a timestamp) changed from integer to string
and caused journal creation to fail.
pull/133/head
Mike Fährmann 6 years ago
parent 7742cf8601
commit 0232d80cec
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -102,6 +102,8 @@ class DeviantartExtractor(Extractor):
if self.user: if self.user:
deviation["username"] = self.user deviation["username"] = self.user
deviation["da_category"] = deviation["category"] deviation["da_category"] = deviation["category"]
deviation["published_time"] = text.parse_int(
deviation["published_time"])
@staticmethod @staticmethod
def commit(deviation, target): def commit(deviation, target):

Loading…
Cancel
Save