Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort book data by id DESC #360

Open
SenorSmartyPants opened this issue Jun 5, 2017 · 1 comment
Open

Sort book data by id DESC #360

SenorSmartyPants opened this issue Jun 5, 2017 · 1 comment

Comments

@SenorSmartyPants
Copy link

FBReader is downloading the first EPUB format book from my feed. So it gets ORIGINAL_EPUB, instead of my edited EPUB. This is my quick work around. I would prefer a blacklist of formats in the feed.

This should put all ORIGINAL_* formats to the end of the list. Now ORIGINAL_EPUB won't display in the feed output before EPUB.

Data.php

public static function getDataByBook ($book) {
    $out = array ();
    $result = parent::getDb ()->prepare('select id, format, name
                                         from data where book = ? order by id DESC');
    $result->execute (array ($book->id));
@horus68
Copy link
Contributor

horus68 commented Jun 5, 2017

I also would like a blacklist!.
You can also remove all ORIGINAL_EPUB files using Calibre button "Remove Books - Files from a specific format"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants