Skip to content

Commit

Permalink
up main files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed May 25, 2024
1 parent c9aaf0f commit 3945b5c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion release/githubio/js/main.js

Large diffs are not rendered by default.

29 changes: 22 additions & 7 deletions release/githubio/js/main_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5124,6 +5124,7 @@
var AddCode_clientId = 'Y2N6anV6ZXNwMGR4eDMxbGRxd3ViMjdqcTRjMjM3'; //public but get yours link above is free
//none public get yours link above is free
var AddCode_main_token;
var AddCode_extra_token;
var AddCode_client_token = 'bmFsejdnYmxhc3l3bzY2cGN5d2lnNzdyNmc5aG9u';
var AddCode_backup_client_id = 'dWU2NjY2cW85ODN0c3g2c28xdDB2bmF3aTIzM3dh';
var Chat_token = 'a2QxdW5iNGIzcTR0NThmd2xwY2J6Y2JubTc2YThmcA==';
Expand Down Expand Up @@ -13834,16 +13835,25 @@
Main_Bearer_User_Headers = [
[clientIdHeader, AddCode_backup_client_id]
];
var header = [
[clientIdHeader, AddCode_backup_client_id]
];
var Live_header = [
[clientIdHeader, AddCode_backup_client_id]
],
Vod_header = [
[clientIdHeader, AddCode_backup_client_id]
];

if (AddUser_UserIsSet()) {
Main_Bearer_User_Headers.push([Bearer_Header, Bearer + AddUser_UsernameArray[0].access_token]);
header.push([Bearer_Header, Main_OAuth + AddUser_UsernameArray[0].access_token]);

//Allow to overrite the live stream access token
var token = AddCode_extra_token ? AddCode_extra_token : AddUser_UsernameArray[0].access_token;
Live_header.push([Bearer_Header, Main_OAuth + token]);

Vod_header.push([Bearer_Header, Main_OAuth + AddUser_UsernameArray[0].access_token]);
}

Play_Headers = JSON.stringify(header);
Play_Headers = JSON.stringify(Live_header);
Play_Vod_Headers = JSON.stringify(Vod_header);
}

function FullxmlHttpGet(theUrl, Headers, callbackSuccess, calbackError, key, checkResult, Method, postMessage) {
Expand Down Expand Up @@ -15206,6 +15216,9 @@
Play_Headers = JSON.stringify([
['Client-ID', Chat_token]
]);
Play_Vod_Headers = JSON.stringify([
['Client-ID', Chat_token]
]);
}
}
/*
Expand Down Expand Up @@ -22826,6 +22839,8 @@

//To pass to Java
var Play_Headers;
var Play_Vod_Headers;

//Live
var Play_live_token_prop = 'streamPlaybackAccessToken';
var Play_live_token =
Expand Down Expand Up @@ -22888,7 +22903,7 @@
DefaultHttpGetTimeout, //int timeout
(isLive ? Play_live_token : Play_vod_token).replace('%x', Channel_or_VOD_Id), // String postMessage
'POST', //String Method
Play_Headers, //String JsonHeadersArray
isLive ? Play_Headers : Play_Vod_Headers, //String JsonHeadersArray
'PlayHLS_GetTokenResult', //String callback
CheckId_y, //long checkResult
isLive ? '1' : '0', //String check_1
Expand Down Expand Up @@ -23092,7 +23107,7 @@
(isLive ? Play_live_token : Play_vod_token).replace('%x', Channel_or_VOD_Id), //postMessage
'POST', //Method
0, //checkResult
Play_Headers //JsonHeadersArray
isLive ? Play_Headers : Play_Vod_Headers //JsonHeadersArray
);

if (obj) {
Expand Down

0 comments on commit 3945b5c

Please sign in to comment.