1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update image encoding

This commit is contained in:
Luke Pulverenti 2015-10-28 15:40:38 -04:00
parent 6d016e0db9
commit 0320ad7256
20 changed files with 205 additions and 68 deletions

View file

@ -73,7 +73,6 @@
application: "com.emby.mobile",
product: productId,
type: "Subscription",
feature: "MBSClubMonthly",
storeToken: receipt,
amt: price
};
@ -81,6 +80,7 @@
if (enteredEmail) {
postData.email = enteredEmail;
postData.storeId = enteredEmail;
postData.feature = "MBSClubMonthly";
}
ApiClient.ajax({
@ -98,7 +98,22 @@
}).fail(function (e) {
alert('validate fail');
callback(false, product);
if (e.status == 402) {
callback(false, {
code: store.PURCHASE_EXPIRED,
error: {
message: "Subscription Expired"
}
});
} else {
callback(false, {
code: store.CONNECTION_FAILED,
error: {
message: "Connection Failure"
}
});
}
});
}
@ -124,6 +139,7 @@
if (requiresVerification) {
store.when(id).verified(function (p) {
alert('verified');
updateProductInfo(p);
p.finish();
});
@ -136,7 +152,7 @@
if (product.loaded && product.valid && product.state == store.APPROVED) {
Logger.log('finishing previously created transaction');
if (requiresVerification) {
product.verify();
//product.verify();
} else {
product.finish();
}