gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Do not force the presence of PDF format for all books

Open benoit74 opened this issue 2 years ago • 5 comments

A few lines are forcing the presence of the PDF format for all books.

This is causing broken links / weird buttons in all books which do not have a PDF format.

Discussion on this issue already started here by mistake (my bad).

benoit74 avatar Jan 19 '23 20:01 benoit74

I don't understand this ticket. If it's independent to #159, does that mean that we have PDF files in ZIM files always? Even when we don't request them?

rgaudin avatar Jan 20 '23 11:01 rgaudin

It is relatively independent from #159 It means that no matter the content of the RDF, the scraper consider there is always a PDF format available for all books. This causes the behavior you saw while testing #163 that when you request PDF among other export formats, you get many books with broken PDF buttons because the format is supposed to be there according to the bookformat table.

benoit74 avatar Jan 20 '23 13:01 benoit74

OK it's more clear: it fakes the availability of PDF for all books, even if there's no real PDF. Understood.

I don't see how it could affect #159 though but I believe we're not understanding each other on what #159 is about 😅

rgaudin avatar Jan 20 '23 14:01 rgaudin

FWIW, pdf generation at PG is planned for sometime this year.

On Jan 20, 2023, at 9:13 AM, rgaudin @.***> wrote:

OK it's more clear: it fakes the availability of PDF for all books, even if there's no real PDF. Understood.

I don't see how it could affect #159 https://github.com/openzim/gutenberg/issues/159 though but I believe we're not understanding each other on what #159 https://github.com/openzim/gutenberg/issues/159 is about 😅

— Reply to this email directly, view it on GitHub https://github.com/openzim/gutenberg/issues/160#issuecomment-1398451252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHCGMNZGII62OOG6ZDPXYTWTKMPHANCNFSM6AAAAAAUAZHIDE. You are receiving this because you are subscribed to this thread.

eshellman avatar Jan 20 '23 18:01 eshellman

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar May 26 '23 16:05 stale[bot]