Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2013, 07:00 AM   #1
RobFreundlich
Connoisseur
RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.
 
Posts: 74
Karma: 10000010
Join Date: Jan 2012
Device: Android Tablet with Calibre Companion and Moon+ Reader Pro
TOC not hooked up properly in downloaded/converted news

The attached ZIP file contains two MOBI files. The first, missing-toc.mobi, was created by calibre's scheduled news download last night. If I look at it in Calibre's side panel, it appears to have content (see missing-toc-sidePanel.png).

However, if I look at it in Calibre's viewer, it appears to have no content (see missing-toc-viewer.png)

If I run my recipe manually:

Code:
ebook-convert "Boston Globe Subscription_1005.recipe" .EPUB -vv --debug-pipeline debug --username XXXX --password XXXX
and then convert that output to MOBI, the result works correctly. That's the second file in the ZIP (has-toc.MOBI)

When I was looking at the bug tracker yesterday, I thought I saw something about MOBI table of contents not working right, but now I can't find it. So this may be a known problem.

Version: Calibre 0.9.34 (patched with the "'builtin_function_or_method' object has no attribute 'rpartition'" fix)
Attached Thumbnails
Click image for larger version

Name:	missing-toc-viewer.png
Views:	140
Size:	71.7 KB
ID:	106884   Click image for larger version

Name:	missing-toc-sidePanel.png
Views:	148
Size:	59.1 KB
ID:	106885  
Attached Files
File Type: zip MissingTOC.zip (1.12 MB, 92 views)
RobFreundlich is offline   Reply With Quote
Old 06-11-2013, 07:19 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I just tried downlaoding the boston globe in MOBI and the result had a fully populated ToC. Try running your download again. From the screenshot you posted it looks like no articles were downloaded, robably because the server was having issues at the time.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-11-2013, 11:37 AM   #3
RobFreundlich
Connoisseur
RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.
 
Posts: 74
Karma: 10000010
Join Date: Jan 2012
Device: Android Tablet with Calibre Companion and Moon+ Reader Pro
Kovid,

You're right - I just ran the download again from within Calibre (Schedule New Download -> Select the recipe, Download Now), and it did fail (see failed_download.txt). What's bizarre is that when I ran my recipe manually again, it succeeded again.

I've attached the recipe. Unfortunately, you'll need a Boston Globe subscription to run it, but maybe you can figure something out by reading the recipe? If not, I can temporarily change my password and give you temporary access that way.

Also, if you'd rather I move this to a bug report, I'd be happy to - whatever works best for you.
Attached Files
File Type: txt failed_download.txt (290.1 KB, 96 views)
File Type: zip Boston Globe Subscription_1005.zip (4.7 KB, 85 views)
RobFreundlich is offline   Reply With Quote
Old 06-11-2013, 11:51 AM   #4
RobFreundlich
Connoisseur
RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.
 
Posts: 74
Karma: 10000010
Join Date: Jan 2012
Device: Android Tablet with Calibre Companion and Moon+ Reader Pro
More info:

The info I just posted was from my copy of Calibre at home. I have a copy here at work, and I just pulled the recipe up to my work machine and ran it. it worked correctly.

So there's something about Calibre on my home machine that is failing.
  • I've got the same version here and at home, so it's not the code itself.
  • Running ebook-convert manually at home, with debug settings turned on, worked, where running the download from within Calibre didn't. So it's not something inherent in the recipe or my home network.
  • This worked fine until I installed 0.9.34 a few days ago.

Reasonable explanations: it could be a configuration option I've changed in Calibre, or possibly the debug flags on the manual run, or it's a behavior change in 0.9.34 that is triggered by a configuration option.

I'll compare options between the work and home Calibre installations, but if you (Kovid or anyone else) have got any ideas (given what I've reported) that can narrow down my search, it'd be a huge help.

Thanks!
RobFreundlich is offline   Reply With Quote
Old 06-11-2013, 12:08 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There haven't been any changes to the news download system in 0.9.34, but feel free to downgrade to 0.9.33 and try it. Other than that, nothing jumps out at me from that log.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-11-2013, 01:12 PM   #6
RobFreundlich
Connoisseur
RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.RobFreundlich ought to be getting tired of karma fortunes by now.
 
Posts: 74
Karma: 10000010
Join Date: Jan 2012
Device: Android Tablet with Calibre Companion and Moon+ Reader Pro
It turns out I'd been on 0.9.30 before 0.9.34, so I went back to that version, and it worked. I then incrementally installed 0.9.31, 32, 33, and 34, trying the download at each step. Each succeeded, including the latest.

I suspect that what happened was one of these:
  1. Jumping from 0.9.30 to 0.9.34 introduced a subtle problem
  2. Installing two different versions of 0.9.34 introduced a subtle problem (I had started with the original 0.9.34 and then gotten the new one to fix the "no attribute" problem)
  3. There was cruft of some kind in my install directory. Since I had to completely uninstall to go back from 0.9.34 to 0.9.30, that cleared the cruft and fixed it for me.

Regardless, I'm working now, so from a practical perspective, it doesn't really matter to me what went wrong. Thanks for the tip to downgrade!
RobFreundlich is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Functional TOC doesn't work properly in iPAD touchelango Apple Devices 1 11-07-2012 02:25 PM
ePub to Mobi, table is converted properly ebookuser Conversion 1 05-10-2011 03:45 AM
different "delete downloaded news" values per news source? scottfree Calibre 1 01-19-2011 11:15 AM
Add only news tag to downloaded news? eric11210 Calibre 2 08-06-2010 05:51 AM
Making a Rough html toc for downloaded web pages sherryk_us Calibre 5 06-21-2009 03:23 PM


All times are GMT -4. The time now is 03:39 AM.


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