Skip to content

Commit

Permalink
MangaDex | 3.0.3 - Fix weird quirk with search query (#24)
Browse files Browse the repository at this point in the history
Not sure why requestManager does not deal with %20 (aka spaces) properly
  • Loading branch information
niclimcy authored Jan 11, 2024
1 parent ab0f4b8 commit 3766a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MangaDex/MangaDex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const MangaDexInfo: SourceInfo = {
description: 'Extension that pulls manga from MangaDex',
icon: 'icon.png',
name: 'MangaDex',
version: '3.0.2',
version: '3.0.3',
authorWebsite: 'https://github.com/nar1n',
websiteBaseURL: MANGADEX_DOMAIN,
contentRating: ContentRating.EVERYONE,
Expand Down Expand Up @@ -358,7 +358,7 @@ export class MangaDex implements ChapterProviding, SearchResultsProviding, HomeP

const url = new URLBuilder(this.MANGADEX_API)
.addPathComponent('manga')
.addQueryParameter(searchType, (query.title?.length ?? 0) > 0 ? encodeURIComponent(query.title!) : undefined)
.addQueryParameter(searchType, (query.title?.length ?? 0) > 0 ? encodeURIComponent(query.title!).replace(/%20/g, '+') : undefined)
.addQueryParameter('limit', 100)
.addQueryParameter('hasAvailableChapters', true)
.addQueryParameter('availableTranslatedLanguage', languages)
Expand Down

0 comments on commit 3766a43

Please sign in to comment.