[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.
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user