Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typo #92

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/providers/manga/mangadex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/providers/mangadex.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const mangadex = new MANGA.MangaDex();

### search
> Note: This method is a subclass of the [`BaseParser`](https://github.com/consumet/extensions/blob/master/src/models/base-parser.ts) class. meaning it is available across most categories.
>
>
<h4>Parameters</h4>

| Parameter | Type | Description |
Expand All @@ -35,7 +35,7 @@ output:
{
id: 'b35f67b6-bfb9-4cbd-86f0-621f37e6cb41', // manga id
title: 'Tomodachi Game',
altTtitles: [
altTitles: [
{ en: 'Friends Games' },
{ ja: 'トモダチゲーム' },
{...},
Expand Down Expand Up @@ -73,7 +73,7 @@ output:
{
id: 'b35f67b6-bfb9-4cbd-86f0-621f37e6cb41',
title: 'Tomodachi Game',
altTtitles: [
altTitles: [
{ en: 'Friends Games' },
{ ja: 'トモダチゲーム' },
{...},
Expand Down
6 changes: 3 additions & 3 deletions src/providers/manga/mangadex.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios, { AxiosError, AxiosResponse } from 'axios';
import { encode } from 'ascii-url-encoder';
import axios, { AxiosError, AxiosResponse } from 'axios';

import { MangaParser, ISearch, IMangaInfo, IMangaResult, MediaStatus, IMangaChapterPage } from '../../models';
import { IMangaChapterPage, IMangaInfo, IMangaResult, ISearch, MangaParser, MediaStatus } from '../../models';
import { capitalizeFirstLetter } from '../../utils';

class MangaDex extends MangaParser {
Expand All @@ -18,7 +18,7 @@ class MangaDex extends MangaParser {
const mangaInfo: IMangaInfo = {
id: data.data.id,
title: data.data.attributes.title.en,
altTtitles: data.data.attributes.altTitles,
altTitles: data.data.attributes.altTitles,
description: data.data.attributes.description,
genres: data.data.attributes.tags
.filter((tag: any) => tag.attributes.group === 'genre')
Expand Down