Add EhUrl.getFixedPreviewThumbUrl()

This commit is contained in:
seven332 committed 2017-01-24 19:22:58 +08:00
1 parent 8be0b5c588
commit b6a5d237ac
2 files changed
+23 -3

No files matched your search

@@ -200,6 +200,10 @@ public class EhEngine {
}
}
for (GalleryInfo info : list) {
info.thumb = EhUrl.getFixedPreviewThumbUrl(info.thumb);
}
return result;
}
@@ -448,6 +452,10 @@ public class EhEngine {
fillGalleryListByApi(task, okHttpClient, result.galleryInfoList);
}
for (GalleryInfo info : result.galleryInfoList) {
info.thumb = EhUrl.getFixedPreviewThumbUrl(info.thumb);
}
return result;
}
@@ -555,6 +563,10 @@ public class EhEngine {
fillGalleryListByApi(task, okHttpClient, result.galleryInfoList);
}
for (GalleryInfo info : result.galleryInfoList) {
info.thumb = EhUrl.getFixedPreviewThumbUrl(info.thumb);
}
return result;
}
@@ -619,6 +631,10 @@ public class EhEngine {
fillGalleryListByApi(task, okHttpClient, list);
}
for (GalleryInfo info : list) {
info.thumb = EhUrl.getFixedPreviewThumbUrl(info.thumb);
}
return list;
}
@@ -802,6 +818,10 @@ public class EhEngine {
}
}
for (GalleryInfo info : list) {
info.thumb = EhUrl.getFixedPreviewThumbUrl(info.thumb);
}
return result;
}
@@ -128,10 +128,10 @@ public class EhUrl {
public static String getThumbUrlPrefix() {
switch (Settings.getGallerySite()) {
default:
case SITE_G:
//case SITE_G:
return URL_PREFIX_THUMB_G;
case SITE_EX:
return URL_PREFIX_THUMB_EX;
//case SITE_EX:
// return URL_PREFIX_THUMB_EX;
}
}