|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,289
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
|
[Plugin] DeleteUnmanifestedFiles
Updated: 8 October 2019
Current Version: "0.1.2" This simple plugin will delete files that third-party apps might write to the ePub temp folder. Note that this plugin will delete all unmanifested files, except for files in the META-INF folder. For example, it won't delete com.apple.ibooks.display-options.xml. Installation: 1. Select Manage Plugins from the Plugins menu and select Use Bundled Python, if it isn't already selected. 2. Click Add Plugin and select DeleteUnmanifestedFiles_v0.1.2.zip. This will install the DeleteUnmanifestedFiles edit plugin, which you can select via Plugins > Edit > DeleteUnmanifestedFiles. License: GNU General Public License v3 (GPL-3) Last edited by Doitsu; 10-08-2019 at 01:01 PM. Reason: Updated version with minor updates attached |
|
|
|
|
|
#2 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 98
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
|
Quote:
… On second look, actually they do seem to have entries in content.opf’s <manifest> section, since I added them via Sigil’s interface. But ought they to? |
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,711
Karma: 169429004
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But as mentioned elsewhere, totally unmanifested files (except for the special mimetype file and what's in the META-INF folder) won't likely survive consecutive Sigil saves anyway. Last edited by DiapDealer; 10-10-2017 at 06:04 PM. |
|
|
|
|
|
|
#4 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,289
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(Epubcheck only checks for the presence of container.xml and the content.opf path.) However, since Sigil will delete .txt files from the META-INF folder upon opening the ePub, you'll have to add them after you've finalized the epub. |
|
|
|
|
|
|
#5 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 98
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
|
Quote:
… I think I’ll stick with what I’m doing: manifested files in Misc/ which are not referenced otherwise. |
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,929
Karma: 4217884
Join Date: Nov 2009
Device: many
|
BTW: If unmanifested files are present in an ebook at the time a plugin is launched you can get access to all unmanifested files in bk.other_iter() and you should be able to use the normal interface to delete them.
Code:
# all other ebook files not in the manifest
print("\nExercising: bk.other_iter()")
for book_href in bk.other_iter():
print(book_href)
So please consider trying the provided iterator approach and if you run into trouble, let me know and I will fix any unearthed bugs. Last edited by KevinH; 10-16-2017 at 12:34 PM. Reason: update to be a suggestion |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 25 | 10-13-2019 12:32 AM |
| Goodread Perception Expander plugin not shown on plugin list (kobo h2o) | www | KOReader | 4 | 09-28-2017 11:34 AM |
| Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 11:49 PM |
| Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |