fix for spaces in .mobi filenames

This commit is contained in:
Thomas Citharel 2015-01-26 00:16:14 +01:00
parent e25972f830
commit 42ac69337f

View file

@ -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');