-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
OPDS endpoint for categories #518
Comments
I suggest |
Is Youtube a category in itself ? To me it’s a scraper that gives access to content and we could have content-specific categories later-on. But maybe we want to add another tag to represent that it’s mostly video content (different to videos:yes which only express a capability) ? |
Move categories list in `static_content.cpp` We use two "string" to handle each category. The first one is the tag to use to do the opds request. The second one is the one displayed to the user. The later is translatable. The list is taken from issue kiwix/kiwix-tools#317 Fix #193
Move categories list in `static_content.cpp` We use two "string" to handle each category. The first one is the tag to use to do the opds request. The second one is the one displayed to the user. The later is translatable. The list is taken from issue kiwix/kiwix-tools#317 Fix #193
Move categories list in `static_content.cpp` We use two "string" to handle each category. The first one is the tag to use to do the opds request. The second one is the one displayed to the user. The later is translatable. The list is taken from issue kiwix/kiwix-tools#317 Fix #193
Move categories list in `static_content.cpp` We use two "string" to handle each category. The first one is the tag to use to do the opds request. The second one is the one displayed to the user. The later is translatable. The list is taken from issue kiwix/kiwix-tools#317 Fix #193
Move categories list in `static_content.cpp` We use two "string" to handle each category. The first one is the tag to use to do the opds request. The second one is the one displayed to the user. The later is translatable. The list is taken from issue kiwix/kiwix-tools#317 Fix #193
An other point is probably the translation of the labels. The API end point should allow to specify a language. See kiwix/kiwix-tools#59 to store translations. |
Regarding the storage if these categories, I believe for now we can harcode them in the libkiwix. Each time the kiwix-serve would be build with a new linkiwix, then new categories would be made available. |
What format should be used for the response of the categories endpoint? XML? Something like the following? <categories>
<category>wikipedia</category>
<category>ted</category>
...
</categories> |
@veloman-yunkan I believe this has to be more complexe because the label can be different from the Category ID. On the top of that we should be ready to provide localised versions of categories, see kiwix/kiwix-tools#357 and kiwix/kiwix-tools#358. Maybe something like this:
|
We should use the opds specification as far as possible.
|
@mgautierfr Thanks for the information. I have the following questions (cc @kelson42):
|
I have no string opinion on this, will let you discuss and make a decision with @mgautierfr. |
@mgautierfr I have the feeling you should give your informed feedback here and maybe even make the decision. |
@mgautierfr Just a reminder, that this is blocked pending feedback from you |
Yes, we can upgrade to OPDS 1.2
No. It is somehow explains in #209 (but not explicitly). The ideas is to create another feed in parallel of the Which name to used is still open. |
I propose to create the new OPDS API under |
@mgautierfr Any feedbakc here? |
Sorry for the delay. I agree for |
Discussing about this feed with @Popolechien and @rgaudin, it appears that the feed should probably not offer categories for which there is no ZIM available. @veloman-yunkan This is already the case in your PR? Should I open a new ticket? |
@kelson42 I don't think that we need another ticket for that. |
In order to improve ZIM files filtering on readers, we need to maintain a centralized list of Categories to which ZIM files are attached to. This has been mentionned in kiwix-lib#130 and kiwix-desktop#193.
The Categories list will start with the followings and should support internationalizations (
en
translations bellow).gutenberg
:Gutenberg
phet
:PhET
psiram
:Psiram
stack_exchange
:Stack Exchange
ted
:TED
vikidia
:Vikidia
wikibooks
:Wikibooks
wikinews
:Wikinews
wikipedia
:Wikipedia
wikiquote
:Wikiquote
wikisource
:Wikisource
wikispecies
:Wikispecies
wikiversity
:Wikiversity
wikivoyage
:Wikivoyage
wiktionary
:Wiktionary
The text was updated successfully, but these errors were encountered: