HTTrack Website Copier
Free software offline browser - FORUM
Subject: Incorrect file extension
Author: Jay
Date: 11/02/2016 18:10
 
I am trying to download some .mobi files with httrack but the the extension is
being changed to .html. I've tried using the assume flag "--assume
mobi=application/x-mobipocket-ebook" but httrack still thinks the mime type is
'text/html'. I've tried using other mime types in the assume flag but httrack
always chooses 'text/html'.

I'm executing httrack with the command

httrack <http://www.k12opened.com/ebooks/er/angry-king.mobi> --assume
mobi=application/x-mobipocket-ebook -zZ

Here are the relevant lines from the debug log.

13:03:09        Debug:  Changing link extension
www.k12opened.com/ebooks/er/angry-king.mobi to .0.delayed
13:03:09        Debug:  engine: save-name: local name:
www.k12opened.com/ebooks/er/angry-king.0.delayed ->
www.k12opened.com/ebooks/er/angry-king.0.delayed
13:03:09        Debug:  Waiting for type to be known:
www.k12opened.com/ebooks/er/angry-king.mobi
13:03:09        Debug:  resolved: www.k12opened.com
13:03:09        Debug:  File confirmed (size test):
www.k12opened.com/ebooks/er/angry-king.mobi (671)
13:03:09        Debug:  Final type for
www.k12opened.com/ebooks/er/angry-king.mobi: 'text/html'
13:03:09        Debug:  Changing link extension
www.k12opened.com/ebooks/er/angry-king.mobi to .html
13:03:09        Debug:  engine: save-name: local name:
www.k12opened.com/ebooks/er/angry-king.html ->
www.k12opened.com/ebooks/er/angry-king.html
13:03:09        Debug:  Record: www.k12opened.com/ebooks/er/angry-king.mobi ->
www.k12opened.com/ebooks/er/angry-king.html

Any help you could provide would be appreciated.

Thanks,
-Jay

 
Reply


All articles

Subject Author Date
Incorrect file extension

11/02/2016 18:10




0

Created with FORUM 2.0.11