diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-01-26 00:16:14 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-01-26 00:16:14 +0100 |
commit | 42ac69337f6538593e4375a38fb410b13c6cb660 (patch) | |
tree | c3d44d300cd8fa1b7de1f76b6563579a81b568c8 /inc/poche | |
parent | e25972f83000bc664c4f3f880ae0a874c6b33f75 (diff) | |
download | wallabag-42ac69337f6538593e4375a38fb410b13c6cb660.tar.gz wallabag-42ac69337f6538593e4375a38fb410b13c6cb660.tar.zst wallabag-42ac69337f6538593e4375a38fb410b13c6cb660.zip |
fix for spaces in .mobi filenames
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/WallabagEBooks.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/poche/WallabagEBooks.class.php b/inc/poche/WallabagEBooks.class.php index d31939a1..afcf4dbf 100644 --- a/inc/poche/WallabagEBooks.class.php +++ b/inc/poche/WallabagEBooks.class.php | |||
@@ -202,6 +202,9 @@ class WallabagMobi extends WallabagEBooks | |||
202 | } | 202 | } |
203 | $mobi->setContentProvider($content); | 203 | $mobi->setContentProvider($content); |
204 | 204 | ||
205 | // we strip spaces because the browser inside Kindle Devices doesn't likes spaces | ||
206 | $this->bookFileName = str_replace(' ', '_', $this->bookFileName); | ||
207 | |||
205 | // we offer file to download | 208 | // we offer file to download |
206 | $mobi->download($this->bookFileName.'.mobi'); | 209 | $mobi->download($this->bookFileName.'.mobi'); |
207 | Tools::logm('Mobi file produced'); | 210 | Tools::logm('Mobi file produced'); |