Skip to content

Commit

Permalink
[deviantart] don't add journal text to description (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 5, 2020
1 parent 4aea513 commit c6c06c4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions gallery_dl/extractor/deviantart.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,14 @@ def items(self):

if "excerpt" in deviation and self.commit_journal:
journal = self.api.deviation_content(deviation["deviationid"])
yield self.commit_journal(deviation, journal)

if self.extra:
deviation["description"] = \
deviation.get("description", "") + journal["html"]
deviation["_journal"] = journal["html"]
yield self.commit_journal(deviation, journal)

if self.extra:
for match in DeviantartStashExtractor.pattern.finditer(
deviation.get("description", "")):
txt = (deviation.get("description", "") +
deviation.get("_journal", ""))
for match in DeviantartStashExtractor.pattern.finditer(txt):
url = text.ensure_http_scheme(match.group(0))
deviation["_extractor"] = DeviantartStashExtractor
yield Message.Queue, url, deviation
Expand Down

2 comments on commit c6c06c4

@calestyo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to update/re-download just the descriptions (that were downloaded with previous versions)?

@mikf
Copy link
Owner Author

@mikf mikf commented on c6c06c4 Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug never made it into a release. It was something I overlooked when implementing the "search journals for sta.sh links" feature in 41d0316 and then fixed it a day later with this commit.

But to answer your question: No, there isn't.

Please sign in to comment.