mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update qsv encoding
This commit is contained in:
parent
62b528a41c
commit
e92784271b
5 changed files with 30 additions and 26 deletions
|
@ -39,6 +39,6 @@
|
||||||
"commit": "cec8e49744a1e18b14a711eea77e201bb70de544"
|
"commit": "cec8e49744a1e18b14a711eea77e201bb70de544"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/desandro/doc-ready.git",
|
"_source": "git://github.com/desandro/doc-ready.git",
|
||||||
"_target": "1.0.x",
|
"_target": "~1.0.4",
|
||||||
"_originalSource": "doc-ready"
|
"_originalSource": "doc-ready"
|
||||||
}
|
}
|
|
@ -11,7 +11,12 @@
|
||||||
|
|
||||||
var url = 'Videos/' + currentItem.Id + '/Subtitles/' + index;
|
var url = 'Videos/' + currentItem.Id + '/Subtitles/' + index;
|
||||||
|
|
||||||
$.get(ApiClient.getUrl(url)).done(function (result) {
|
ApiClient.ajax({
|
||||||
|
|
||||||
|
type: 'GET',
|
||||||
|
url: url
|
||||||
|
|
||||||
|
}).then(function (result) {
|
||||||
|
|
||||||
$('.subtitleContent', page).html(result);
|
$('.subtitleContent', page).html(result);
|
||||||
|
|
||||||
|
|
|
@ -1246,7 +1246,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemsContainerWithAlphaPicker {
|
.itemsContainerWithAlphaPicker {
|
||||||
margin-right: 15px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,34 +29,32 @@
|
||||||
var url = getUrl(name, culture);
|
var url = getUrl(name, culture);
|
||||||
var requestUrl = url + "?v=" + window.dashboardVersion;
|
var requestUrl = url + "?v=" + window.dashboardVersion;
|
||||||
|
|
||||||
fetch(requestUrl, { mode: 'no-cors' }).then(function (response) {
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', requestUrl, true);
|
||||||
|
|
||||||
if (response.status < 400) {
|
xhr.onload = function (e) {
|
||||||
|
|
||||||
return response.json();
|
if (this.status < 400) {
|
||||||
|
|
||||||
|
dictionaries[url] = JSON.parse(this.response);
|
||||||
|
resolve();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Grab the english version
|
// Grab the english version
|
||||||
fetch(getUrl(name, 'en-US'), { mode: 'no-cors' }).then(function (response) {
|
var xhr2 = new XMLHttpRequest();
|
||||||
|
xhr2.open('GET', getUrl(name, 'en-US'), true);
|
||||||
|
|
||||||
return response.json();
|
xhr2.onload = function (e) {
|
||||||
|
dictionaries[url] = JSON.parse(this.response);
|
||||||
}).then(function (json) {
|
|
||||||
|
|
||||||
dictionaries[url] = json;
|
|
||||||
resolve();
|
resolve();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
xhr2.send();
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
}).then(function (json) {
|
xhr.send();
|
||||||
|
|
||||||
if (json) {
|
|
||||||
dictionaries[url] = json;
|
|
||||||
resolve();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3123,13 +3123,14 @@
|
||||||
// success: successFn,
|
// success: successFn,
|
||||||
// error: this._loadError(absUrl, triggerData, settings, deferred)
|
// error: this._loadError(absUrl, triggerData, settings, deferred)
|
||||||
//});
|
//});
|
||||||
fetch(fileUrl, {
|
var xhr = new XMLHttpRequest();
|
||||||
mode: 'no-cors'
|
xhr.open('GET', fileUrl, true);
|
||||||
|
|
||||||
}).then(function (response) {
|
xhr.onload = function(e) {
|
||||||
|
successFn(this.response);
|
||||||
|
};
|
||||||
|
|
||||||
return response.text();
|
xhr.send();
|
||||||
}).then(successFn);
|
|
||||||
|
|
||||||
return deferred.promise();
|
return deferred.promise();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue