diff options
| author | 2020-06-16 02:01:17 -0400 | |
|---|---|---|
| committer | 2020-06-16 02:01:17 -0400 | |
| commit | 8c911e3d62a430f5630c13d51b47201fa8ff3cd1 (patch) | |
| tree | 6e0e6f65abc37d7f35ea96d323031a52c7fa966d /gallery_dl/extractor/furaffinity.py | |
| parent | a70a3246927b72f1ded37acd55ee719515441b5b (diff) | |
New upstream version 1.14.1.upstream/1.14.1
Diffstat (limited to 'gallery_dl/extractor/furaffinity.py')
| -rw-r--r-- | gallery_dl/extractor/furaffinity.py | 13 |
1 files changed, 8 insertions, 5 deletions
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">', '</section>') @@ -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", |
