Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into 0.8
  • Loading branch information
TheNetsky committed Nov 25, 2024
2 parents 3dea720 + 74f1a16 commit 088ce72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NHentai/NHentai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { popularTags } from './tags.json'
const NHENTAI_URL = 'https://nhentai.net'

export const NHentaiInfo: SourceInfo = {
version: '4.0.7',
version: '4.0.8',
name: 'nhentai',
icon: 'icon.png',
author: 'NotMarek & Netsky',
Expand Down
4 changes: 2 additions & 2 deletions src/NHentai/NHentaiParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] ?? ''
Expand All @@ -114,4 +114,4 @@ const getLanguage = (gallery: Gallery): string => {
}
}
return ''
}
}

0 comments on commit 088ce72

Please sign in to comment.