Skip to content

Commit

Permalink
fix mangadex typo (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunt-g authored Oct 20, 2022
1 parent e78731e commit 900ee73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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

0 comments on commit 900ee73

Please sign in to comment.