Closed benjaoming closed 8 years ago
It seems that a "code": "en"
is absent from all_metadata.json
is absent, perhaps if we include English in the content pack meta data, our UI will allow to download updates?
Latest json overwritten again. Will fix it manually.
@aronasorman my manually edited all_metadata.json
have all been overwritten time and time again and I'm kind of tired of manually appending this information.
Would you care to weigh in here?
This is the entry that I'm adding....
{
"subtitle_count":7208,
"language_pack_version":3,
"topic_tree_translated":100,
"zip_size":733792710,
"name":"English",
"beta":false,
"code":"en",
"software_version":"0.16",
"video_count":8034,
"percent_translated":100,
"native_name":"English"
},
en-minimal's content data should read "subtitle_count": 0
btw. because it doesn't contain subtitles.. that will make the content pack download page also say +7208 subtitles
next to the Upgrade button :)
The english data here points to en.zip
, not en-minimal.zip
. This was previously set to 0 always, causing them not to update their english content pack. But I thought we wanted them to have the option to update? If so, we have to leave it to be incrementing.
This issue + the fact that we distribute a broken content pack by default is IMO a great enough reason to simply stop having the minimal content pack.
Instead, for testing purposes, I suggest having something like en-test.zip and making it possible to ship an empty content.db, automatically prompting users to install content packs.
I'm guessing that if we put
"language_pack_version": 0
in the metadata of the minimal language pack, then updates will always show up and this issue will be solved?https://github.com/learningequality/ka-lite/issues/5102