From 8c911e3d62a430f5630c13d51b47201fa8ff3cd1 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 16 Jun 2020 02:01:17 -0400 Subject: New upstream version 1.14.1. --- gallery_dl/extractor/furaffinity.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gallery_dl/extractor/furaffinity.py') diff --git a/gallery_dl/extractor/furaffinity.py b/gallery_dl/extractor/furaffinity.py index 9af7274..61226b6 100644 --- a/gallery_dl/extractor/furaffinity.py +++ b/gallery_dl/extractor/furaffinity.py @@ -48,6 +48,7 @@ class FuraffinityExtractor(Extractor): extr = text.extract_from(self.request(url).text) title, _, artist = text.unescape(extr( 'property="og:title" content="', '"')).rpartition(" by ") + artist_url = artist.replace("_", "").lower() path = extr('href="//d.facdn.net/', '"') if not path: @@ -64,11 +65,12 @@ class FuraffinityExtractor(Extractor): rh = text.remove_html data = text.nameext_from_url(path, { - "id" : pi(post_id), - "title" : title, - "artist": artist, - "user" : self.user or artist, - "url" : "https://d.facdn.net/" + path + "id" : pi(post_id), + "title" : title, + "artist" : artist, + "artist_url": artist_url, + "user" : self.user or artist_url, + "url" : "https://d.facdn.net/" + path }) tags = extr('class="tags-row">', '') @@ -178,6 +180,7 @@ class FuraffinityPostExtractor(FuraffinityExtractor): "url": "eae4ef93d99365c69b31a37561bd800c03d336ad", "keyword": { "artist" : "mirlinthloth", + "artist_url" : "mirlinthloth", "date" : "dt:2016-11-27 17:24:06", "description": "A Song made playing the game Cosmic DJ.", "extension" : "mp3", -- cgit v1.2.3