[gnome-books/wip/hadess/cbr-mime-type] search: Fix CBR files not appearing



commit 61f85f3c63e31d331417ee0dba899a052107510e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Apr 9 13:21:11 2019 +0200

    search: Fix CBR files not appearing
    
    Tracker doesn't know anything about mime-type aliases, so renamed
    mime-types are simply ignored. Add the new CBR mime-type to the list of
    acceptable mime-types for comics.
    
    Closes: #25

 src/search.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/search.js b/src/search.js
index 744b71c9..ad0ecd88 100644
--- a/src/search.js
+++ b/src/search.js
@@ -129,7 +129,7 @@ const SearchTypeManager = new Lang.Class({
                                       where: '?urn rdf:type nfo:EBook .' }));
         this.addItem(new SearchType({ id: SearchTypeStock.COMICS,
                                       name: _("Comics"),
-                                      filter: '(nie:mimeType(?urn) IN (\"application/x-cbr\", 
\"application/x-cbz\", \"application/vnd.comicbook+zip\", \"application/x-cbt\", \"application/x-cb7\"))',
+                                      filter: '(nie:mimeType(?urn) IN (\"application/x-cbr\", 
\"application/vnd.comicbook-rar\", \"application/x-cbz\", \"application/vnd.comicbook+zip\", 
\"application/x-cbt\", \"application/x-cb7\"))',
                                       where: '?urn rdf:type nfo:EBook .' }));
 
 


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