Skip to content

Commit

Permalink
Fix for DB: spaces in author names
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawlence committed Oct 2, 2020
1 parent a44436b commit 46763db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Extension/Background.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function validateAnswer(tagsOrigin, hosterUrl, requesterUrl) {
return false;
};

//TODO: maybe add DB & PIXIV expanding to maximum resolution availible?
function processURL( /* object */ image, tabId) {
/* Cleans the URL of image object, shifts some information to name if needed */
let url = image.url,
Expand Down
2 changes: 1 addition & 1 deletion Extension/Parsers/DB.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var windowDisplacement = 0;
const styleTargets = "aside section a.search-tag";

function getAuthorHandle() {
return safeQuery('aside section ul.artist-tag-list a.search-tag').innerText;
return safeQuery('aside section ul.artist-tag-list a.search-tag').innerText.replace(/\s/g, '_');
};

function getAuthorName() {
Expand Down
2 changes: 1 addition & 1 deletion Extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"48": "SIR_48x48.png",
"16": "SIR_16x16.png"
},
"version": "1.5.0",
"version": "1.5.1",
"manifest_version": 2,
"permissions": ["downloads", "contextMenus"],
"content_scripts": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sir_image_renamer",
"version": "1.5.0",
"version": "1.5.1",
"description": "SIR is an Image Renamer.\nProvides meaningful image names when saving on Pixiv, Deviantart, Artstation, etc.",
"scripts": {
"test": "web-ext lint --source-dir=./Extension/",
Expand Down

0 comments on commit 46763db

Please sign in to comment.