diff --git a/src/NHentai/NHentaiParser.ts b/src/NHentai/NHentaiParser.ts index 5fbf1a4..84ef906 100644 --- a/src/NHentai/NHentaiParser.ts +++ b/src/NHentai/NHentaiParser.ts @@ -90,7 +90,7 @@ function capitalizeTags(str: string) { }).join(' ') } -const typeMap: { [key: string]: string; } = { 'j': 'jpg', 'p': 'png', 'g': 'gif' } +const typeMap: { [key: string]: string; } = { 'j': 'jpg', 'p': 'png', 'g': 'gif', 'w': 'webp'} const typeOfImage = (image: ImagePageObject): string => { return typeMap[image.t] ?? '' @@ -114,4 +114,4 @@ const getLanguage = (gallery: Gallery): string => { } } return '' -} \ No newline at end of file +}