![]() |
#721 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
#722 |
Evangelist
![]() ![]() ![]() Posts: 488
Karma: 258
Join Date: Mar 2009
Device: kindle
|
I had to re-upload perl, it kept freezing up on me. Did this happen to anybody else?
|
![]() |
![]() |
![]() |
#723 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2009
Device: kindle
|
Quote:
I tried several since I also figured it was the quotes and/or ' that were causing issues. The last one had no quotes and no spaces, no ', just to see if it would work: mobi2mobi --outfile HarryPotter-Book1-test1.mobi --updatedtitle HarryPotterandtheSorcerersStone --addauthor JKRowling Book1.mobi This failed. Other examples tried are: mobi2mobi --outfile HarryPotter-Book1-test1.mobi --updatedtitle HarryPotterandtheSorcerersStone --addauthor JKRowling Book\ 1\ -\ Harry\ Potter\ and\ the\ Sorcerer\'s\ Stone.mobi mobi2mobi --outfile HarryPotter-Book1.mobi --updatedtitle "Harry Potter and the Sorcerers Stone" --addauthor "JK Rowling" Book\ 1\ -\ Harry\ Potter\ and\ the\ Sorcerer\'s\ Stone.mobi mobi2mobi --outfile HarryPotter-Book1.mobi --title "Harry Potter and the Sorcerers Stone" --author "JK Rowling" Book\ 1\ -\ Harry\ Potter\ and\ the\ Sorcerer\'s\ Stone.mobi All failed with the same error. I also tried without specifying an "outfile" to see if data could just be added: mobi2mobi --updatedtitle 'Harry Potter and the Sorcerers Stone' --addauthor 'J.K. Rowling' Book\ 1\ -\ Harry\ Potter\ and\ the\ Sorcerer\'s\ Stone.mobi This did not cause an error, but also did not appear to work according to mobils. If I am using it wrong on the command line please let me know. Thanks - Steven |
|
![]() |
![]() |
![]() |
#724 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
#725 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2009
Device: kindle
|
Quote:
Usage: mobi2mobi [options] filename Options: --outfile FILENAME --title TITLE --updatedtitle TITLE --prefixtitle PREFIX --author AUTHOR --addauthor AUTHOR --description DESCRIPTION --subject SUBJECT --language LANGUAGE --publisher PUBLISHER --databasename NAME --patch --fiximagesize --gen3imagefix --exthtype TYPE --addexthtype TYPE --exthdata DATA --delexthtype TYPE --delexthindex INDEX --booktype TYPE --addthumbnail FILENAME --coverimage FILENAME --coveroffset OFFSET --mbpfile FILENAME --savecover FILENAME --savethumb FILENAME --imagerescale 0|1 |
|
![]() |
![]() |
![]() |
#726 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
Are you sure the book you are editing is truly a mobipocket file? I think it can be TextRead or MOBIBOOK? I think the beginning of the file tells you this if you open in a text editor. But, that may not be it, I am sure Tommy will be along soon and tell you what's up. BOb |
|
![]() |
![]() |
![]() |
#727 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
If I remember correctly --updatedtitle is only needed for a MobiPocket book where updated title is set in the EXTH header and I think only Kindle books used that. So try with just --title and see if this work.
|
![]() |
![]() |
![]() |
#728 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
There might be a problem with -addauthor if not author is speicifed. So try --author instead.
|
![]() |
![]() |
![]() |
#729 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
The error messages seems to indicated that an existing EXTH header should be in the data but when trying to set a value the data is to short. This is code patched by pdurrant so maybe he remember better what the code does and can give an idea about the problem. |
|
![]() |
![]() |
![]() |
#730 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2009
Device: kindle
|
Quote:
I suspcet the solution is that when creating the mobi via html2mobi (or whatever) one should remember to add the appropriate --title or --author flags at that time. The output of mobi2mobi Book1.mobi is: Merlin-2:books steve$ mobi2mobi Book1.mobi Database Name: Unknown Version: 0 Type: BOOK Creator: MOBI Seed: 144 Resdb: AppInfoDirty: ctime: -911426252 - Wed Feb 12 22:02:28 1941 mtime: -911423833 - Wed Feb 12 22:42:47 1941 baktime: -911423833 - Wed Feb 12 22:42:47 1941 --------------------------------------------------- --------------------------------------------------- START IMAGE INDEX: 128 COVER IMAGE INDEX: 0 PDHEADER Version: 1 PDHEADER Length: 522248 PDHEADER NRecords: 127 PDHEADER Recsize: 4096 PDHEADER Unknown: 2 MOBIHEADER doctype: MOBI MOBIHEADER length: 0 MOBIHEADER booktype: 2 - BOOK MOBIHEADER codep: 65001 MOBIHEADER uniqid: 1379812394 MOBIHEADER ver: 3 MOBIHEADER exthflg: 0 MOBIHEADER language: 0 - 0 - 0 - NEUTRAL - LONGTITLE: LASTID: 0 ----------------- - Steven |
|
![]() |
![]() |
![]() |
#731 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2009
Device: kindle
|
Calibre - ebook management software
Hello all, I just discovered this opensource program at http://calibre.kovidgoyal.net/wiki I have not tried it much yet, but it claims to support the kindle2 and has great capabilities in terms of converting other ebook formats into .mobi formats. Currently it is capable of reading .mobi files, but it only writes metadata to LRF, RTF and OPF formats. I think it would be interesting, although I don't know how hard, to combine the Mobiperl .mobi metadata support with this project. Anyways, I thought people here might be interested in taking a look at this software. - Steven |
![]() |
![]() |
![]() |
#732 |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
![]() ![]() Calibre has a separate forum here at MobileRead.com and both software packages have been open sourced for years now. Most members here use one or both packages regularly. |
![]() |
![]() |
![]() |
#733 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,551
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
Given the title of the book in question, I also wonder if this is a legal file.
|
![]() |
![]() |
![]() |
#734 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2009
Device: kindle
|
|
![]() |
![]() |
![]() |
#735 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
![]() |
![]() |
![]() |
Tags |
mobi2mobi, mobils |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |