- $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['id'], $_GET['value']);
- $epub->run();
+ $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
+ $epub->prepareData();
+ $epub->produceEpub();
+ } elseif (isset($_GET['mobi'])) {
+ $mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
+ $mobi->prepareData();
+ $mobi->produceMobi();
+ } elseif (isset($_GET['pdf'])) {
+ $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
+ $pdf->prepareData();
+ $pdf->producePDF();