Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I add my Calibre library to Spotlight?

202 views
Skip to first unread message

Howard Brazee

unread,
Feb 15, 2012, 9:40:37 AM2/15/12
to
I'd like Spotlight to index e-books I have in "~/Calibre Library/".



How do I set this up?

Chris Ridd

unread,
Feb 15, 2012, 9:59:26 AM2/15/12
to
On 2012-02-15 14:40:37 +0000, Howard Brazee said:

> I'd like Spotlight to index e-books I have in "~/Calibre Library/".
>
>
>
> How do I set this up?

It will be indexing that directory already, unless you've configured
Spotlight not to.

However, you probably don't have a Spotlight plugin on your machine
that understands how to index ebooks, so the books aren't probably
indexed very well.

Try installing a Spotlight plugin for the sorts of ebooks that you've got.
--
Chris

Howard Brazee

unread,
Feb 15, 2012, 10:18:16 AM2/15/12
to
On Wed, 15 Feb 2012 14:59:26 +0000, Chris Ridd <chri...@mac.com>
wrote:
I tested this by finding a .pdf in that library, and sure enough,
Spotlight found it.

So I found
http://legacy.audacious-software.com/weblog/2009/09/codex-plugins-1-0b1/
and installed it. I expect I'll have to wait a bit or reboot for
Spotlight to reindex. Thanks.

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison

Howard Brazee

unread,
Feb 15, 2012, 11:18:01 AM2/15/12
to
On Wed, 15 Feb 2012 08:18:16 -0700, Howard Brazee <how...@brazee.net>
wrote:

>I tested this by finding a .pdf in that library, and sure enough,
>Spotlight found it.
>
>So I found
>http://legacy.audacious-software.com/weblog/2009/09/codex-plugins-1-0b1/
>and installed it. I expect I'll have to wait a bit or reboot for
>Spotlight to reindex. Thanks.

Hmm, I rebooted, I added that folder in privacy mode on the Spotlight
settings and removed it. No dice so far.

I also looked for .mobi plugin, and found QLMobipocket 3.qlgenerator,
but didn't know what to do with it. I'll hold off on other stuff
like .azw files. Since Calibre can convert everything to .epub, then
all I need is to make sure everything gets converted once, if I want
to do searches.

Chris Ridd

unread,
Feb 15, 2012, 11:26:37 AM2/15/12
to
On 2012-02-15 15:18:16 +0000, Howard Brazee said:

> On Wed, 15 Feb 2012 14:59:26 +0000, Chris Ridd <chri...@mac.com>
> wrote:
>
>> On 2012-02-15 14:40:37 +0000, Howard Brazee said:
>>
>>> I'd like Spotlight to index e-books I have in "~/Calibre Library/".
>>>
>>>
>>>
>>> How do I set this up?
>>
>> It will be indexing that directory already, unless you've configured
>> Spotlight not to.
>>
>> However, you probably don't have a Spotlight plugin on your machine
>> that understands how to index ebooks, so the books aren't probably
>> indexed very well.
>>
>> Try installing a Spotlight plugin for the sorts of ebooks that you've got.
>
>
> I tested this by finding a .pdf in that library, and sure enough,
> Spotlight found it.
>
> So I found
> http://legacy.audacious-software.com/weblog/2009/09/codex-plugins-1-0b1/
> and installed it. I expect I'll have to wait a bit or reboot for
> Spotlight to reindex. Thanks.

The mdimport command can help. "mdimport -L" lists all the Spotlight
plugins. Running:

mdimport ~/Calibre\ Library

will reindex every file in your calibre library.
--
Chris

Fred Moore

unread,
Feb 15, 2012, 11:54:17 AM2/15/12
to
In article <28mnj7l24oaspf12o...@4ax.com>,
Howard Brazee <how...@brazee.net> wrote:

> I also looked for .mobi plugin, and found QLMobipocket 3.qlgenerator,
> but didn't know what to do with it.

Drag it to /Library/QuickLook/ or ~/Library/QuickLook/ and restart.

Howard Brazee

unread,
Feb 15, 2012, 1:18:43 PM2/15/12
to
On Wed, 15 Feb 2012 11:54:17 -0500, Fred Moore <fmo...@gcfn.org>
wrote:

>> I also looked for .mobi plugin, and found QLMobipocket 3.qlgenerator,
>> but didn't know what to do with it.
>
>Drag it to /Library/QuickLook/ or ~/Library/QuickLook/ and restart.

Thanks. It's dragged, I will restart soon.

Howard Brazee

unread,
Feb 15, 2012, 1:25:04 PM2/15/12
to

>The mdimport command can help. "mdimport -L" lists all the Spotlight
>plugins. Running:
>
>mdimport ~/Calibre\ Library
>
>will reindex every file in your calibre library.

I ran the mdimport commands (see below), and then tested by picking a
name that I found in an .epub and searching for it in Spotlight. No
luck.

I will run it again after I restart to get the .mobi add on working.

Anything here that I should be concerned with?


Last login: Wed Feb 15 08:28:58 on console
Kernel Information: Darwin 11.3.0 x86_64
\e[0;33mGNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
Copyright (C) 2007 Free Software Foundation, Inc.
\e[1;30mUptime: 11:19 up 2:52, 2 users, load averages: 0.73 0.80
0.89
\e[1;30mServer time is: Wed Feb 15 11:19:40 MST 2012
~ > mdimport ~/Calibre\ Library
2012-02-15 11:19:54.801 mdimport[3445:707] Error loading
/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office:
dlopen(/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office, 262): no suitable
image found. Did find:
/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office: mach-o, but wrong
architecture
2012-02-15 11:19:54.801 mdimport[3445:707] Cannot find function
pointer OfficeImporterPluginFactory for factory
BFA4E323-1889-11D9-82C8-000A959816BE in CFBundle/CFPlugIn 0x10b72b7d0
</Library/Spotlight/Microsoft Office.mdimporter> (bundle, not loaded)
2012-02-15 11:19:55.402 mdimport[3445:707] Error loading
/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office:
dlopen(/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office, 262): no suitable
image found. Did find:
/Library/Spotlight/Microsoft
Office.mdimporter/Contents/MacOS/Microsoft Office: mach-o, but wrong
architecture
2012-02-15 11:19:55.403 mdimport[3445:707] Cannot find function
pointer OfficeImporterPluginFactory for factory
BFA4E323-1889-11D9-82C8-000A959816BE in CFBundle/CFPlugIn 0x10b72b7d0
</Library/Spotlight/Microsoft Office.mdimporter> (bundle, not loaded)
~ > mdimport -L
2012-02-15 11:20:57.377 mdimport[3467:707] Paths: id(501) (
"/Library/Spotlight/iWork.mdimporter",
"/System/Library/Spotlight/Font.mdimporter",
"/Users/HBrazee/.Trash/Delicious Library
2.app/Contents/Library/Spotlight/Delicious Library 2
Importer.mdimporter",
"/Library/Spotlight/Microsoft Office.mdimporter",

"/Applications/NeoOffice.app/Contents/Library/Spotlight/neolight.mdimporter",

"/Developer/Applications/Xcode.app/Contents/Library/Spotlight/SourceCode.mdimporter",
"/System/Library/Spotlight/Archives.mdimporter",
"/System/Library/Spotlight/Audio.mdimporter",
"/Applications/Microsoft Office 2011/Microsoft
Outlook.app/Contents/Library/Spotlight/Microsoft Outlook.mdimporter",
"/Library/Spotlight/ParallelsMD.mdimporter",
"/System/Library/Spotlight/Image.mdimporter",
"/System/Library/Spotlight/Application.mdimporter",

"/Applications/Evernote.app/Contents/Library/Spotlight/EvernoteSpotlightImporter.mdimporter",
"/System/Library/Spotlight/RichText.mdimporter",
"/System/Library/Spotlight/CoreMedia.mdimporter",
"/System/Library/Spotlight/Chat.mdimporter",
"/System/Library/Spotlight/iPhoto.mdimporter",
"/System/Library/Spotlight/PS.mdimporter",
"/System/Library/Spotlight/Mail.mdimporter",
"/System/Library/Spotlight/vCard.mdimporter",
"/System/Library/Spotlight/PDF.mdimporter",
"/Library/Spotlight/GBSpotlightImporter.mdimporter",
"/System/Library/Spotlight/iPhoto8.mdimporter",
"/System/Library/Spotlight/Bookmarks.mdimporter",
"/System/Library/Spotlight/SystemPrefs.mdimporter",
"/Users/HBrazee/Library/PreferencePanes/Default Folder
X.prefPane/Contents/Resources/Default Folder X
Helper.app/Contents/Library/Spotlight/OpenMetaSpotlight.mdimporter",
"/System/Library/Spotlight/iCal.mdimporter",
"/System/Library/Spotlight/MIDI.mdimporter",
"/System/Library/Spotlight/QuartzComposer.mdimporter",

"/Applications/Thunderbird.app/Contents/Library/Spotlight/Thunderbird.mdimporter",
"/Library/Spotlight/Codex Spotlight.mdimporter",
"/System/Library/Spotlight/Automator.mdimporter",

"/Developer/Applications/Xcode.app/Contents/Library/Spotlight/uuid.mdimporter"
)
~ >

Chris Ridd

unread,
Feb 16, 2012, 3:07:13 AM2/16/12
to
On 2012-02-15 18:25:04 +0000, Howard Brazee said:

>>
>> The mdimport command can help. "mdimport -L" lists all the Spotlight
>> plugins. Running:
>>
>> mdimport ~/Calibre\ Library
>>
>> will reindex every file in your calibre library.
>
> I ran the mdimport commands (see below), and then tested by picking a
> name that I found in an .epub and searching for it in Spotlight. No
> luck.

Strange. I wonder if it is because your Spotlight plugin for epub
(which mdimport -L lists, so that's good) is not Lion-compatible. Apple
set a UTI for epubs in Lion that is different to what most people used
pre-Lion. I don't know if you can fix that or if you need to ask the
plugin's author.

Try typing "mdls " and then drag an epub file to that terminal window
and press return. The mdls command will print out all the metadata that
Spotlight can see for the file.

If it does show stuff, then Spotlight *has* apparently indexed it.

--
Chris

Howard Brazee

unread,
Feb 16, 2012, 10:01:08 AM2/16/12
to
On Thu, 16 Feb 2012 08:07:13 +0000, Chris Ridd <chri...@mac.com>
wrote:

>Strange. I wonder if it is because your Spotlight plugin for epub
>(which mdimport -L lists, so that's good) is not Lion-compatible. Apple
>set a UTI for epubs in Lion that is different to what most people used
>pre-Lion. I don't know if you can fix that or if you need to ask the
>plugin's author.
>
>Try typing "mdls " and then drag an epub file to that terminal window
>and press return. The mdls command will print out all the metadata that
>Spotlight can see for the file.
>
>If it does show stuff, then Spotlight *has* apparently indexed it.

I have a document that is on my computer in .doc, .pdf, .docx, .rtf, &
.epub. I dragged the .epub version to the mdls command, and saw a
listing of metadata.

Then I went to spotlight and selected a term from that document. All
of the versions showed up except the .epub.

Maybe I should exclude that directory, reboot, then include that
directory in Systems Preference/Spotlight/Privacy. I haven't
rebooted between doing this yet.
0 new messages