mirror of
https://github.com/seven332/EhViewer
synced 2026-11-26 17:18:06 +08:00
Guess language in WhatHotConverter
This commit is contained in:
1 parent
b6e862bec9
commit
501d61de4c
1 file changed
+2
@@ -26,6 +26,7 @@ import android.util.Log;
|
||||
import android.util.Pair;
|
||||
import com.hippo.ehviewer.client.EhConverter;
|
||||
import com.hippo.ehviewer.client.EhUrl;
|
||||
import com.hippo.ehviewer.client.EhUtils;
|
||||
import com.hippo.ehviewer.client.data.GalleryInfo;
|
||||
import com.hippo.ehviewer.client.exception.ParseException;
|
||||
import com.hippo.ehviewer.client.result.WhatsHotResult;
|
||||
@@ -97,6 +98,7 @@ public class WhatsHotConverter extends EhConverter<WhatsHotResult> {
|
||||
galleryInfo.coverUrl = img.attr("src");
|
||||
galleryInfo.cover = EhUrl.getImageFingerprint(galleryInfo.coverUrl);
|
||||
galleryInfo.title = img.attr("title");
|
||||
galleryInfo.language = EhUtils.guessLang(galleryInfo.title);
|
||||
|
||||
return galleryInfo;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user