Message from JavaScript discussions

January 2017

— I don't want them putting in other sources of data


So something like this would be bad

var myAction = dataStore.addAction("myAction",
function (state, parameters) {
state.prop = someOtherDataSource();
return state;

and should instead be:

— Guess some stern warnings about side effects and such will be enough

— If it's for your developers a documented warning should be enough.

— There is always an Antipatern on libraries.

— Good to know

— Good to all and thank you for the effort you make to the community.
I have a problem and I do not know how to solve it. I currently have an app designed for an online content player that is based on Javas type androidtv but in this case it is based on java and nothing to do with android or kodi.
Until now the files collected them from a web called but in the last weeks said web change and now before being able to download some file asks logear to be able to download.
In python it was achieved by applying the following code. But do not take it to javas to make me work the same.

If someone can rewrite the code in javascript I would be eternally grateful.

Message permanent page

— This is code actual

— This is code in Python

— Thank you very much

— I have one question?

— Pure javascript or jquery too?