![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
|
Flight Crew ValidateEpub method
Hi,
Anyone know what is going on here? This is in ValidateEpub.cpp: Code:
try { throw(std::exception()); } catch ( std::exception& exception ) { results.push_back( Result( ERROR_EPUB_NOT_VALID_ZIP_ARCHIVE ) .SetCustomMessage( exception.what() ) ); return results; } |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Probably checking if the ePUB is a valid ePUB. After all, it is an zip file. However, it must be created in a certain manner.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And yet epubs are validated without any errors all the time by the integrated Flightcrew. So we're missing something. As written... yes, there will be an exception and an error, but the snippet of code doesn't tell us when; under what circumstances; or even IF that code gets called.
|
![]() |
![]() |
![]() |
#5 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
|
Quote:
FC_WIN_DLL_API std::vector< Result > ValidateEpubRootFolder( const std::string &root_folder_path ); Which works great when I tested it myself. I'm just wondering what the story is with the other method. I'm interested in this because I'd like to have a flight crew command line executable again, but don't know the code base very well, yet. Thanks |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 10-31-2013 at 06:00 AM. |
|
![]() |
![]() |
![]() |
#7 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
The FlightCrew in Sigil and the FlightCrew as a standalone library are not in sync with one another. Sigil doesn't use that method because there is no reason to validate the archive because it was already validated by being opened.
What happened is I replaced zipios with minizip in Sigil. Since that method isn't used by Sigil I just removed the zipios functionality from the bundled FlightCrew. I never got around to changing FlightCrew to use minizip instead of zipios. |
![]() |
![]() |
![]() |
#8 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Just so it's clear that function actually works and is proper in the standalone FlightCrew source. It's only in Sigil that that function doesn't do anything.
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
|
@user_none - thanks for taking the time to answer; it's appreciated. So I guess my next question is: which one should I be utilizing? I went with the Sigil one because I thought that was the latest and greatest, but perhaps it's pretty stable and I should just utilize this one?
https://code.google.com/p/flightcrew/ Thanks! |
![]() |
![]() |
![]() |
#10 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
the only prolem with this is that one cannot pass an ePub to it on the command line. ![]() At least this is true on win7 pro with the 64bit version, |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Code:
Syntax for cli is Usage: flightcrew-cli [options] file... Code:
D:\Downloads>"c:\Program Files\FlightCrew\FlightCrew-cli.exe" "The Pharaoh and the Priest.epub" No problems found. |
|
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
When did that get fixed? My Bug 26 is still open from 2011 Last edited by theducks; 11-04-2013 at 10:34 AM. Reason: add bug number |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help please with Flight Crew error message ??? | wannabee | ePub | 9 | 08-10-2011 09:27 AM |
Flight Crew report | crutledge | Sigil | 4 | 01-13-2011 07:06 PM |
Sigil conversion doesn't pass Flight Crew | mrmikel | Sigil | 1 | 11-07-2010 05:53 AM |
Flight Crew | Hitch | Sigil | 2 | 10-29-2010 05:28 AM |