Skip to content

Commit

Permalink
Merge pull request #399 from Eltik/master
Browse files Browse the repository at this point in the history
fix: AniList recent episodes + proxy config
  • Loading branch information
Eltik authored Oct 18, 2023
2 parents bc32210 + f5e9ffd commit d71bdca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Proxy {
...config.headers,
'x-api-key': proxyConfig?.key ?? '',
};
config.url = `${proxyConfig.url}/${config?.url ? config?.url : ''}`;
config.url = `${proxyConfig.url}${config?.url ? config?.url : ''}`;
}

if (config?.url?.includes('anify'))
Expand Down
2 changes: 1 addition & 1 deletion src/providers/meta/anilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ class Anilist extends AnimeParser {
try {
const {
data: { data, meta },
} = await this.client.get(`${this.anifyUrl}/recent?page=${page}`);
} = await this.client.get(`${this.anifyUrl}/recent?page=${page}&type=anime`);

let results: IAnimeInfo[] = data.map((item: any) => ({
id: item.anime.anilistId.toString(),
Expand Down

0 comments on commit d71bdca

Please sign in to comment.