Skip to content

Commit

Permalink
fix(route): dlsite (DIYgod#17103)
Browse files Browse the repository at this point in the history
* fix(route): dlsite

* revert

* fix: `/dlsite/ci-en/:id/article`

* fix: route order
  • Loading branch information
kahosan authored Oct 13, 2024
1 parent bb74dad commit 3cd690a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/routes/dlsite/campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ async function handler(ctx) {
}
const link = setUrl(info);

const response = await got(link, {
const response = await got(new URL(link, host), {
method: 'GET',
prefixUrl: host,
});
const data = response.data;
const $ = load(data);
Expand Down
3 changes: 1 addition & 2 deletions lib/routes/dlsite/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ async function handler(ctx) {

const link = info.url.slice(1);

const response = await got(link, {
const response = await got(new URL(link, host), {
method: 'GET',
prefixUrl: host,
});
const data = response.data;
const $ = load(data);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Route } from '@/types';
import { ProcessItems } from './utils';
import { ProcessItems } from '../utils';

export const route: Route = {
path: '*',
Expand Down

0 comments on commit 3cd690a

Please sign in to comment.