Skip to content

Commit

Permalink
fix thumbs on nh
Browse files Browse the repository at this point in the history
  • Loading branch information
az4521 committed Dec 7, 2024
1 parent b3a8d2c commit aa29537
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class NHentaiSearchMetadata : RaisedSearchMetadata() {
override fun copyTo(manga: SManga) {
nhId?.let { manga.url = nhIdToPath(it) }

if (mediaId != null) {
if (mediaId != null && mediaServer != null) {
val hqThumbs = Injekt.get<PreferencesHelper>().eh_nh_useHighQualityThumbs().get()
typeToExtension(if (hqThumbs) coverImageType else thumbnailImageType)?.let {
manga.thumbnail_url = "https://t.nhentai.net/galleries/$mediaId/${if (hqThumbs) {
manga.thumbnail_url = "https://t$mediaServer.nhentai.net/galleries/$mediaId/${if (hqThumbs) {
"cover"
} else {
"thumb"
Expand Down

0 comments on commit aa29537

Please sign in to comment.