Guess language in WhatHotConverter

This commit is contained in:
seven332 committed 2017-02-25 19:23:52 +08:00
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;
}