calibre-devs team mailing list archive
-
calibre-devs team
-
Mailing list archive
-
Message #00113
Re: feeds2* OPF bug
Changing web.fetch.simple to save everything as .xhtml is the best solution.
It shouldn't have any repercussions at all as far as I know. Fixed in trunk.
Kovid.
On Saturday 07 February 2009 13:05:38 Marshall T. Vandegrift wrote:
> Hi Kovid:
>
> The poster doesn't seem to have opened a ticket (yet?), but I took a
> look at the issue mentioned in this mobileread thread:
>
> http://www.mobileread.com/forums/showthread.php?t=38124
>
> The problem is that the OPF handed to oeb2mobi lists all the files with
> '.cfm' extensions (ColdFusion something?) as @media-type
> 'application/octet-stream'. That seems to be happening because
> metadata.opf2 generates the @media-type purely from file extensions.
> I'm not sure how to solve this. To my mind the most-correct thing to do
> would be to set a proper @media-type to start with, but metadata.opf2
> doesn't allow that. I tried having OEBBook use libmagic on anything
> with application/octet-stream, which works, but is kind of gross and
> introduces yet another dependency. Perhaps just have rename all the
> downloaded files to have ".html" extensions? but I'm not familiar enough
> with the feeds code to know what the repercussions of that would be.
> Maybe just leave this one unsolved until 0.5?
>
> This also revealed a regression in Stylizer's handling of bad CSS in
> @style attributes. I could have sworn I'd fixed that one already, but
> I've pushed a fix up into 'staging'.
>
> -Marshall
>
> _______________________________________________
> Mailing list: https://launchpad.net/~calibre-devs
> Post to : calibre-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~calibre-devs
> More help : https://help.launchpad.net/ListHelp
>
> !DSPAM:3,498df7ac75721037619660!
--
_____________________________________
Kovid Goyal MC 452-48
California Institute of Technology
1200 E California Blvd
Pasadena, CA 91125
cell : +01 626 390 8699
office: +01 626 395 6595 (449 Lauritsen)
email : kovid@xxxxxxxxxxxxxxxxxx
web : http://www.kovidgoyal.net
_____________________________________
References