[gnome-online-miners] utils: add nfo:EBook extensions



commit 52c495c70a88140ef06f5694543bbcd05360df20
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Oct 30 15:59:44 2016 -0700

    utils: add nfo:EBook extensions
    
    These were added to the copy of this code in gnome-documents, but we
    don't use that there anymore.
    Move them to the right place.

 src/gom-utils.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/gom-utils.c b/src/gom-utils.c
index 572ff5e..9dcc24a 100644
--- a/src/gom-utils.c
+++ b/src/gom-utils.c
@@ -87,11 +87,23 @@ gom_filename_to_rdf_type (const gchar *filename_with_extension)
       || g_strcmp0 (extension, ".docx") == 0
       || g_strcmp0 (extension, ".dot") == 0
       || g_strcmp0 (extension, ".dotx") == 0
-      || g_strcmp0 (extension, ".epub") == 0
       || g_strcmp0 (extension, ".odt") == 0
       || g_strcmp0 (extension, ".pdf") == 0)
     type = "nfo:PaginatedTextDocument";
 
+  else if (g_strcmp0 (extension, ".epub") == 0
+           || g_strcmp0 (extension, ".djv") == 0
+           || g_strcmp0 (extension, ".djvu") == 0
+           || g_strcmp0 (extension, ".cbr") == 0
+           || g_strcmp0 (extension, ".cbz") == 0
+           || g_strcmp0 (extension, ".cbt") == 0
+           || g_strcmp0 (extension, ".cb7") == 0
+           || g_strcmp0 (extension, ".fb2") == 0
+           || g_strcmp0 (extension, ".fb2.zip") == 0
+           || g_strcmp0 (extension, ".mobi") == 0
+           || g_strcmp0 (extension, ".prc") == 0)
+    type = "nfo:EBook";
+
   else if (g_strcmp0 (extension, ".odp") == 0
            || g_strcmp0 (extension, ".pot") == 0
            || g_strcmp0 (extension, ".potm") == 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]