mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update video probing
This commit is contained in:
parent
8a32cc215f
commit
b70aa4926c
25 changed files with 407 additions and 355 deletions
28
dashboard-ui/cordova/registrationservices.js
vendored
28
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -61,6 +61,7 @@
|
|||
var info = IapManager.getProductInfo(id) || {};
|
||||
|
||||
if (info.owned) {
|
||||
notifyServer(id);
|
||||
validatedFeatures.push(id);
|
||||
deferred.resolve();
|
||||
return;
|
||||
|
@ -91,6 +92,33 @@
|
|||
});
|
||||
}
|
||||
|
||||
function notifyServer(id) {
|
||||
|
||||
if (!$.browser.android) {
|
||||
return;
|
||||
}
|
||||
|
||||
HttpClient.send({
|
||||
type: "POST",
|
||||
url: "https://mb3admin.com/test/admin/service/appstore/addDeviceFeature",
|
||||
data: {
|
||||
deviceId: ConnectionManager.deviceId(),
|
||||
feature: 'com.mb.android.unlock'
|
||||
},
|
||||
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
headers: {
|
||||
"X-EMBY-TOKEN": "EMBY_DEVICE"
|
||||
}
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
Logger.log('addDeviceFeature succeeded');
|
||||
|
||||
}).fail(function () {
|
||||
Logger.log('addDeviceFeature failed');
|
||||
});
|
||||
}
|
||||
|
||||
function getInAppPurchaseElement(info) {
|
||||
|
||||
require(['paperbuttonstyle']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue