Skip to content

Fixed a couple of things, details in commits#19

Merged
AtoraSuunva merged 4 commits intoAtoraSuunva:masterfrom
CaramelFur:master
Oct 3, 2018
Merged

Fixed a couple of things, details in commits#19
AtoraSuunva merged 4 commits intoAtoraSuunva:masterfrom
CaramelFur:master

Conversation

@CaramelFur
Copy link
Copy Markdown

@CaramelFur CaramelFur commented Sep 20, 2018

And here we go, ma 3rd pull request.
Somehow these bois cant automatically merge and I don't know why.
I just added and change a couple things, mainly to fix derpibooru.
It works now. (at least for me)

Renzo Duin added 4 commits September 20, 2018 15:57
There was a bug in post.js were this.rating would be undefined,
this would result in the code crashing on this.rating.charAt(0)

Also derpibooru didn't have api key support, so now you can add your key
to the search options: {derpikey: "somekey"}
Sites.json:
removed the % from derpibooru random since it was not working with it,
it does work without and is completely random.

Booru.js:
actually save the credentials

Derpibooru.js:
change name of credentials argument
also commented out some weird shit for random posts

index.js:
parse the credentials argument also from here to the booru

package-lock.json:
npm just really wanted to change this
@AtoraSuunva
Copy link
Copy Markdown
Owner

AtoraSuunva commented Sep 20, 2018

There was a bug in post.js were this.rating would be undefined, [...]

That was because I forgot to add a [0] after <Regex>.exec(string) so it was trying to use an array and would just crash
Should be fixed in 78990e8 (aka v1.2.1) which changes a line you also changed

When I get time I'll look over how the boorus deal with credentials and see if we can just use apiKey instead so it's clearer

@AtoraSuunva AtoraSuunva self-requested a review October 3, 2018 00:31
@AtoraSuunva AtoraSuunva self-assigned this Oct 3, 2018
@AtoraSuunva AtoraSuunva merged commit 5fff67f into AtoraSuunva:master Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants