mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 12:00:17 +02:00
do not check thumbnail/cover mime
This commit is contained in:
parent
e6c39b21e0
commit
a712cf172d
2 changed files with 5 additions and 6 deletions
|
@ -7,6 +7,9 @@
|
|||
* (planned) Fixed authors list/tags list editing
|
||||
* (planned) CSS selectors priority
|
||||
|
||||
===== 2.2 beta 7 (Dec 08, 2014) =====
|
||||
* Fixed behaviour on feeds with incorrect mimetypes
|
||||
|
||||
===== 2.1.10 (Dec 06, 2014) =====
|
||||
* All changes from 2.2 beta 6
|
||||
* New footer style
|
||||
|
|
|
@ -113,13 +113,9 @@ public class OPDSBookItem extends NetworkBookItem implements OPDSConstants {
|
|||
final String rel = networkLink.relation(link.getRel(), mime);
|
||||
final UrlInfo.Type referenceType = typeByRelation(rel);
|
||||
if (REL_IMAGE_THUMBNAIL.equals(rel) || REL_THUMBNAIL.equals(rel)) {
|
||||
if (MimeType.IMAGE_PNG.equals(mime) || MimeType.IMAGE_JPEG.equals(mime)) {
|
||||
urls.addInfo(new UrlInfo(UrlInfo.Type.Thumbnail, href, mime));
|
||||
}
|
||||
urls.addInfo(new UrlInfo(UrlInfo.Type.Thumbnail, href, mime));
|
||||
} else if ((rel != null && rel.startsWith(REL_IMAGE_PREFIX)) || REL_COVER.equals(rel)) {
|
||||
if (MimeType.IMAGE_PNG.equals(mime) || MimeType.IMAGE_JPEG.equals(mime)) {
|
||||
urls.addInfo(new UrlInfo(UrlInfo.Type.Image, href, mime));
|
||||
}
|
||||
urls.addInfo(new UrlInfo(UrlInfo.Type.Image, href, mime));
|
||||
} else if (MimeType.APP_ATOM_XML.weakEquals(mime) &&
|
||||
"entry".equals(mime.getParameter("type"))) {
|
||||
urls.addInfo(new UrlInfo(UrlInfo.Type.SingleEntry, href, mime));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue