[tracker] tracker-extract: Consider DjVu multipage docs as Ebooks



commit 08f86bb3d1c17135123fb765807233b4aff27108
Author: Bastien Nocera <hadess hadess net>
Date:   Mon May 30 18:47:48 2016 +0200

    tracker-extract: Consider DjVu multipage docs as Ebooks
    
    ddb79e3 and cf7f5df tried to categorise DjVu files as paginated
    documents, which would have slotted them next to PDF files in
    gnome-documents.
    
    But we'd like them to be near EPubs in gnome-books. As the EBook RDF
    type is not too strict in its definition, tagging the DjVu multi-page
    files as Ebooks is the easy way to fix it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766781

 src/tracker-extract/10-djvu.rule   |    3 ---
 src/tracker-extract/10-ebooks.rule |    2 +-
 src/tracker-extract/Makefile.am    |    2 --
 3 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-extract/10-ebooks.rule b/src/tracker-extract/10-ebooks.rule
index 560ba22..d7a03d6 100644
--- a/src/tracker-extract/10-ebooks.rule
+++ b/src/tracker-extract/10-ebooks.rule
@@ -1,3 +1,3 @@
 [ExtractorRule]
-MimeTypes=application/x-zip-compressed-fb2;application/x-fictionbook+xml;application/x-mobipocket-ebook;
+MimeTypes=application/x-zip-compressed-fb2;application/x-fictionbook+xml;application/x-mobipocket-ebook;image/vnd.djvu+multipage;
 FallbackRdfTypes=nfo:EBook;nfo:PaginatedTextDocument;
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index aed1f21..04593e1 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -20,7 +20,6 @@ AM_CPPFLAGS = \
 # and then separately with the module below.
 rules_files = \
        10-abw.rule \
-       10-djvu.rule \
        10-dvi.rule \
        10-epub.rule \
        10-flac.rule \
@@ -186,7 +185,6 @@ extractmodules_LTLIBRARIES += libextract-dummy.la
 # Rule files using the dummy extractor
 rules_DATA += 10-comics.rule
 rules_DATA += 10-ebooks.rule
-rules_DATA += 10-djvu.rule
 
 # ABW
 libextract_abw_la_SOURCES = tracker-extract-abw.c


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