Skip to content

Commit af3c212

Browse files
Merge pull request #6 from bqini/master
Update index.ts
2 parents 18b17ba + 937f955 commit af3c212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export async function posts(options: Rule34OptionsOptional) {
114114
options.pid = options.pid || 0
115115
options.limit = options.limit || 100
116116
if (options.limit > 100) console.warn("rule34js: 100 is limit, using everything larger makes no sense")
117-
const url = `https://rule34.xxx/index.php?page=dapi&s=post&q=index&tags=${options.tags.join("+")}&pid=${options.pid}&limit=${options.limit}`
117+
const url = `https://api.rule34.xxx/index.php?page=dapi&s=post&q=index&tags=${options.tags.join("+")}&pid=${options.pid}&limit=${options.limit}`
118118
const obj = await fetchString(url)
119119
const json = parse(obj, parseroptions, true)
120120
if (json.posts && json.posts.post && options.parse_tags) {

0 commit comments

Comments
 (0)