Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2021, 10:47 AM   #1
Tattvadarzin
Member
Tattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplane
 
Posts: 19
Karma: 55146
Join Date: Oct 2013
Location: UK
Device: Kobo Clara HD, Android Tablet
Unknown Author PNG & SVG Books appearing in Home

I see my books in the Home screen, the ones I am currently reading, a collection called My Books and a collection called Unknown Author.

On picking Unknown Author I see a list of SVG and PNG files, some with non-language names. I presume these are graphic files.

How do I prevent them being added to the Kobo database? All my files are in a top level folder called Library. These files live elsewhere. Perhaps there is a way of pointing the Kobo software at Library to stop it scanning the whole device?

It may be related, but I recently installed using the one-touch installation, KOReader and Plato.
Tattvadarzin is offline   Reply With Quote
Old 08-05-2021, 12:18 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Tattvadarzin View Post
It may be related, but I recently installed using the one-touch installation, KOReader and Plato.
I would suggest re-installing the one-click package using the script from the second message in that thread to set ExcludeSyncFolders properly. Alternatively, you can add:

Code:
[FeatureSettings]
ExcludeSyncFolders=(\\.(?!kobo|adobe).*?|([^.][^/]*/)+\\..+)
to the Kobo eReader.conf file located in the .kobo\Kobo directory. If the [FeatureSettings] line is already present, just add the ExcludeSyncFolders line below it.
DNSB is offline   Reply With Quote
Advert
Old 08-05-2021, 12:49 PM   #3
Tattvadarzin
Member
Tattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplane
 
Posts: 19
Karma: 55146
Join Date: Oct 2013
Location: UK
Device: Kobo Clara HD, Android Tablet
Crikey before I retired I could handle regexs, but this had my head in a twist, especially the \\. .
Is there an IncludeSyncFolders?
How about ExcludeSyncFolders=[^Library] ?
Tattvadarzin is offline   Reply With Quote
Old 08-05-2021, 01:45 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Tattvadarzin View Post
Crikey before I retired I could handle regexs, but this had my head in a twist, especially the \\. .
Is there an IncludeSyncFolders?
How about ExcludeSyncFolders=[^Library] ?
You do not have to understand it. You just have to copy it and past it in the correct place.

Also, once you've put this in the .conf file, you should reboot. You will have to reinstall KOReader as you will lose some of the files.
JSWolf is offline   Reply With Quote
Old 08-05-2021, 01:57 PM   #5
Tattvadarzin
Member
Tattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplane
 
Posts: 19
Karma: 55146
Join Date: Oct 2013
Location: UK
Device: Kobo Clara HD, Android Tablet
But I do, I was the first C programmer in my country (Scotland, UK) when we had a PDP 11 running Unix, doing a computing Ph. D. in the late 70s. I first came across regular expressions round then. I am rusty now but I think there is a much simpler regex for my needs so I do need to understand. The example eliminates adobe and kobo directories starting with a dot. For me, who intends to put all his books in \Library, I can future proof any folder name changes by Kobo by excluding any folder not called Library.

Your rant has added no value to the thread. The need arises for future proofing not to mention the principle of simplicity. I am not a techno-illiterate sheep .

I'll try variations on ^\\(?!Library$)

Last edited by Tattvadarzin; 08-05-2021 at 03:31 PM. Reason: Missing n
Tattvadarzin is offline   Reply With Quote
Advert
Old 08-05-2021, 03:46 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Tattvadarzin View Post
But I do, I was the first C programmer in my country (Scotland, UK) when we had a PDP 11 running Unix, doing a computing Ph. D. in the late 70s. I first came across regular expressions round then. I am rusty now but I think there is a much simpler regex for my needs so I do need to understand. The example eliminates adobe and kobo directories starting with a dot. For me, who intends to put all his books in \Library, I can future proof any folder name changes by Kobo by excluding any folder not called Library.

Your rant has added no value to the thread. The need arises for future proofing not to mention the principle of simplicity. I am not a techno-illiterate sheep .

I'll try variations on ^\\(?!Library$)
You need to exclude multiple folders but allowing access to others so using the posted regex is simpler. BTW, the \\ is a \ which needs to be escaped. Unless you want to play with negative lookaheads, I would go with the posted solution.

If you haven't already hit this site, try regex101: build, test, and debug regex and select Python to test your regexes.

And sorry but Kobo only added the ExcludeSyncFolders. As for the folder name changes, Kobo hasn't done any name changes in quite a while and I think it's pretty safe to suggest that they won't.

And as Jon mentioned, when you change the excluded folders, your Kobo will remove the content that had been added to the library from those folders. So the simplest solution is to run the one-click install script.
DNSB is offline   Reply With Quote
Old 08-05-2021, 04:24 PM   #7
Tattvadarzin
Member
Tattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplane
 
Posts: 19
Karma: 55146
Join Date: Oct 2013
Location: UK
Device: Kobo Clara HD, Android Tablet
I edited my post to add ^\\(?!Library$) which employs negative lookahead, but you may not have seen that.

Thanks for the Python hint. I was using regex cribs and test sites (I used to use them before I retired - they are so useful. Back in the day, the internet didn't exist so all my hand rolled regexes were tried with great pain.)

I am stubborn enough to try my way. I admit I do not understand the bit about reinstalling. If I have it right:
Change .conf file
Disconnect and reboot.
Kobo removes old info, rescans and adds to database.
Connect to PC
Extract one click zip to Kobo root.
Disconnect and reboot.

Things look better but I see 3 png files in My Books: kfmon, koreader and plato. I will need to redo the above as I am not sure which regex I used.

I don't understand why I need the reinstall unless Kobo physically removes files on the rescan.

Anyway thanks for the help. I like to understand what is going on under the hood.

Last edited by Tattvadarzin; 08-05-2021 at 04:26 PM.
Tattvadarzin is offline   Reply With Quote
Old 08-05-2021, 05:11 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Tattvadarzin View Post
I edited my post to add ^\\(?!Library$) which employs negative lookahead, but you may not have seen that.

Things look better but I see 3 png files in My Books: kfmon, koreader and plato. I will need to redo the above as I am not sure which regex I used.

I don't understand why I need the reinstall unless Kobo physically removes files on the rescan.

Anyway thanks for the help. I like to understand what is going on under the hood.
Kobo treats those now excluded files as being removed from the device so to keep things consistent, they remove the files.

As for those 3 files, I suspect they are the icons used by KFMon to launch the programs. I use NickelMenu to launch so I deleted those files.

I tend to be the same why which is why I have a Clara HD to experiment with and a Forma to read on. If I'm going to experiment, a device such as the Clara HD with it's removable internal μSD card is essential if I don't want to indulge in brick production.

Edit: the KOReader and KFMon icons should be in the root of your Kobo's exposed storage while the Plato icon is in the icons folder in the root of the storage.

Last edited by DNSB; 08-05-2021 at 05:22 PM. Reason: added icon locations
DNSB is offline   Reply With Quote
Old 08-06-2021, 10:09 AM   #9
Tattvadarzin
Member
Tattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplaneTattvadarzin makes transoceanic flights without the assistance of an airplane
 
Posts: 19
Karma: 55146
Join Date: Oct 2013
Location: UK
Device: Kobo Clara HD, Android Tablet
Quote:
Originally Posted by DNSB View Post
Kobo treats those now excluded files as being removed from the device so to keep things consistent, they remove the files.

As for those 3 files, I suspect they are the icons used by KFMon to launch the programs. I use NickelMenu to launch so I deleted those files.


Edit: the KOReader and KFMon icons should be in the root of your Kobo's exposed storage while the Plato icon is in the icons folder in the root of the storage.
If Kobo willy nilly deletes files because of a mistake then poor pity the person who gets files in Koboo's standard directories deleted. It is one thing to delete files in user directories but quite another to compromise the operation of the device. I suspect Kobo automatically excludes its own directories. I am trying to remember if E:\.kobo\guide\userguide.pdf is in my list of books.

If this is the case then the "standard" exclusion regex is perhaps overkilling since it excludes .kobo.* directories and .adobe.* directories. It doesn't seem to exclude fonts or icons subdirectories.

Yes kfmon.png and koreader.png appear in the top level directory. The exclusion regex perhaps should exclude those files but since it is a folder exclusion there may be no way to exclude it presumably. The one click installation gives me NickelMenu so can I delete them too?

I have taken my questions regarding ExcludeSyncFolders over to the Developers Corner. I still want to delve deeper into Kobo's file removal algorithm. Any pointers?
Tattvadarzin is offline   Reply With Quote
Old 08-06-2021, 11:25 AM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Moved response to other thread.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown "Unread books" in home screen eric_d Kobo Reader 6 06-28-2018 07:22 AM
How to replace PNG images by SVG in epub? j.p.s ePub 38 08-12-2017 04:27 AM
Convert SVG to PNG/JPEG in ePUB files bunglegrind Conversion 2 04-24-2016 05:01 PM
Books not appearing on home page Dund Amazon Kindle 9 02-27-2012 09:13 PM
.Title & Unknown Author(s) AndyW1691 Library Management 5 01-20-2012 07:17 AM


All times are GMT -4. The time now is 07:12 PM.


MobileRead.com is a privately owned, operated and funded community.