From b55206f1db36e3e9b21cbbc0dbf30661c4063a7e Mon Sep 17 00:00:00 2001 From: TheNetsky <56271887+TheNetsky@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:18:05 +0100 Subject: [PATCH] MangaDex | 3.0.5 --- src/MangaDex/MangaDex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MangaDex/MangaDex.ts b/src/MangaDex/MangaDex.ts index f699ff7..adfc9a8 100644 --- a/src/MangaDex/MangaDex.ts +++ b/src/MangaDex/MangaDex.ts @@ -64,7 +64,7 @@ export const MangaDexInfo: SourceInfo = { description: 'Extension that pulls manga from MangaDex', icon: 'icon.png', name: 'MangaDex', - version: '3.0.4', + version: '3.0.5', authorWebsite: 'https://github.com/nar1n', websiteBaseURL: MANGADEX_DOMAIN, contentRating: ContentRating.EVERYONE, @@ -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 ? query.title : undefined) + .addQueryParameter(searchType, query?.title?.replace(/ /g, '+') || '') .addQueryParameter('limit', 100) .addQueryParameter('hasAvailableChapters', true) .addQueryParameter('availableTranslatedLanguage', languages)