Added ISO639-2 decoding in JSON-formatted metadata output
This commit is contained in:
parent
4cef8d7cf5
commit
bfa9882e8c
4 changed files with 538 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "output_http_internal.h"
|
||||
#include <mist/stream.h>
|
||||
#include <mist/encode.h>
|
||||
#include <mist/langcodes.h>
|
||||
#include "flashPlayer.h"
|
||||
#include "oldFlashPlayer.h"
|
||||
|
||||
|
@ -386,6 +387,9 @@ namespace Mist {
|
|||
// show ALL the meta datas!
|
||||
json_resp["meta"] = strm.asJSON();
|
||||
jsonForEach(json_resp["meta"]["tracks"], it) {
|
||||
if (it->isMember("lang")){
|
||||
(*it)["language"] = Encodings::ISO639::decode((*it)["lang"].asStringRef());
|
||||
}
|
||||
it->removeMember("fragments");
|
||||
it->removeMember("keys");
|
||||
it->removeMember("keysizes");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue