mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-01 06:39:18 +00:00
fix for spaces in .mobi filenames
This commit is contained in:
parent
e25972f830
commit
42ac69337f
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ class WallabagMobi extends WallabagEBooks
|
|||
}
|
||||
$mobi->setContentProvider($content);
|
||||
|
||||
// we strip spaces because the browser inside Kindle Devices doesn't likes spaces
|
||||
$this->bookFileName = str_replace(' ', '_', $this->bookFileName);
|
||||
|
||||
// we offer file to download
|
||||
$mobi->download($this->bookFileName.'.mobi');
|
||||
Tools::logm('Mobi file produced');
|
||||
|
|
Loading…
Reference in a new issue