[gnome-epub-thumbnailer] mobi: Don't bail on encrypted mobi files
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-epub-thumbnailer] mobi: Don't bail on encrypted mobi files
- Date: Wed, 13 Nov 2013 12:06:02 +0000 (UTC)
commit 675c4efafbfc1ecc9982ffcdb917fd4f73ca6a71
Author: Chris Lee <clee mg8 org>
Date: Wed Nov 13 01:58:30 2013 -0800
mobi: Don't bail on encrypted mobi files
The image data isn't encrypted, so we can still generate thumbnails.
http://wiki.mobileread.com/wiki/MOBI#MOBI_DRM
gnome-mobi-thumbnailer.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gnome-mobi-thumbnailer.c b/gnome-mobi-thumbnailer.c
index f7c4081..67c04bf 100644
--- a/gnome-mobi-thumbnailer.c
+++ b/gnome-mobi-thumbnailer.c
@@ -166,13 +166,6 @@ get_image_section (GInputStream *stream,
header = get_section_data (G_INPUT_STREAM (stream), sections, 0, &len);
- /* Checking crypto type */
- if (get_guint16 (header + 0xC) != 0) {
- g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "File is encrypted");
- g_free (header);
- return -1;
- }
-
/* Checking metadata availability */
if (!(get_guint32 (header + 0x80) & 0x40)) {
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "File has no metadata");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]