[deviantart] also search journals for sta.sh links (#712)
when 'extra' is enabled
This commit is contained in:
@@ -576,7 +576,8 @@ extractor.deviantart.extra
|
|||||||
=========== =====
|
=========== =====
|
||||||
Type ``bool``
|
Type ``bool``
|
||||||
Default ``false``
|
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_.
|
Note: Enabling this option also enables deviantart.metadata_.
|
||||||
=========== =====
|
=========== =====
|
||||||
|
|||||||
@@ -123,6 +123,10 @@ class DeviantartExtractor(Extractor):
|
|||||||
journal = self.api.deviation_content(deviation["deviationid"])
|
journal = self.api.deviation_content(deviation["deviationid"])
|
||||||
yield self.commit_journal(deviation, journal)
|
yield self.commit_journal(deviation, journal)
|
||||||
|
|
||||||
|
if self.extra:
|
||||||
|
deviation["description"] = \
|
||||||
|
deviation.get("description", "") + journal["html"]
|
||||||
|
|
||||||
if self.extra:
|
if self.extra:
|
||||||
for match in DeviantartStashExtractor.pattern.finditer(
|
for match in DeviantartStashExtractor.pattern.finditer(
|
||||||
deviation.get("description", "")):
|
deviation.get("description", "")):
|
||||||
|
|||||||
Reference in New Issue
Block a user