-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
ZIM Entry have no title #125
Comments
It seems a bit excessive here. The suggestion is working.
But yes, it is a regression as we don't use the recent feature of a xapian title index and we regress to the old suggestion system (using path instead of title) |
Agrees but there might be a ted-scraper regression as TED DOM changed so we might not store titles where we used too. That's how I understood the ticket. |
I have created a ticket at zimcheck level to avoid this happens in the future, see openzim/zim-tools#272 |
Actually this is not a regression at all. ted2zim v2 never had titles on entries |
Because ted2zim's UI is somewhat multilang, video pages contains a list of the retrieved titles for all the wanted languages. A piece of JS uses the URL query language to set the <title>'s accordingly but the HTML source had no title, resulting in empty Title on ZIM entries (ted2zim is still using zimwriterfs-like mode). Without changing this behavior, this sets the <title> to the *main* language's one. This language is chosen on --locale or defaults to video's default or English. Suggestions do work now.
* updated black formatting * Fixed #125: adding title to ZIM entries Because ted2zim's UI is somewhat multilang, video pages contains a list of the retrieved titles for all the wanted languages. A piece of JS uses the URL query language to set the <title>'s accordingly but the HTML source had no title, resulting in empty Title on ZIM entries (ted2zim is still using zimwriterfs-like mode). Without changing this behavior, this sets the <title> to the *main* language's one. This language is chosen on --locale or defaults to video's default or English. Suggestions do work now.
Wow! Thx for the fix, this desserve a new release? |
Maybe after #118 ? |
I just discovered that TED ZIM files, with the page providing one talk (so not the welcome page), have an empty title.
See for example http://library.kiwix.org/ted_en_technology
As a consequence, the suggestion system is completly broken for the ZIM files.
The text was updated successfully, but these errors were encountered: