[deviantart] also search journals for sta.sh links (#712)
when 'extra' is enabled
This commit is contained in:
parent
0138e9c1d8
commit
41d03160ff
@ -576,7 +576,8 @@ extractor.deviantart.extra
|
||||
=========== =====
|
||||
Type ``bool``
|
||||
Default ``false``
|
||||
Description Download extra Sta.sh resources from description texts.
|
||||
Description Download extra Sta.sh resources from
|
||||
description texts and journals.
|
||||
|
||||
Note: Enabling this option also enables deviantart.metadata_.
|
||||
=========== =====
|
||||
|
@ -123,6 +123,10 @@ class DeviantartExtractor(Extractor):
|
||||
journal = self.api.deviation_content(deviation["deviationid"])
|
||||
yield self.commit_journal(deviation, journal)
|
||||
|
||||
if self.extra:
|
||||
deviation["description"] = \
|
||||
deviation.get("description", "") + journal["html"]
|
||||
|
||||
if self.extra:
|
||||
for match in DeviantartStashExtractor.pattern.finditer(
|
||||
deviation.get("description", "")):
|
||||
|
Loading…
x
Reference in New Issue
Block a user