You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
From 675c4efafbfc1ecc9982ffcdb917fd4f73ca6a71 Mon Sep 17 00:00:00 2001
|
|
From: Chris Lee <clee@mg8.org>
|
|
Date: Wed, 13 Nov 2013 01:58:30 -0800
|
|
Subject: [PATCH] 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 file changed, 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");
|
|
--
|
|
1.8.5.2
|
|
|