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

added oga, webma to audio streaming url

This commit is contained in:
Luke Pulverenti 2013-04-01 20:54:06 -04:00
parent 51e8bf14c7
commit e4a3d35a5f
6 changed files with 40 additions and 9 deletions

View file

@ -1,12 +1,12 @@
(function ($, document) {
(function ($, document, apiClient) {
$(document).on('pageshow', "#aboutPage", function () {
var page = this;
ApiClient.getSystemInfo().done(function(info) {
apiClient.getSystemInfo().done(function(info) {
$('#appVersionNumber', page).html(info.Version);
});
});
})(jQuery, document);
})(jQuery, document, ApiClient);

View file

@ -1,4 +1,4 @@
(function ($, document) {
(function ($, document, apiClient) {
$(document).on('pageshow', "#indexPage", function () {
@ -17,7 +17,7 @@
sortBy: "SortName"
};
ApiClient.getItems(userId, options).done(function (result) {
apiClient.getItems(userId, options).done(function (result) {
$('#divCollections', page).html(Dashboard.getPosterViewHtml({
items: result.Items,
@ -48,4 +48,4 @@
$('#views', page).html(html);
});
})(jQuery, document);
})(jQuery, document, ApiClient);

View file

@ -0,0 +1,28 @@
(function ($, document) {
$(document).on('pageshow', "#moviesPage", function () {
var page = this;
var options = {
SortBy: "SortName",
SortOrder: "Ascending",
IncludeItemTypes: "Movie",
Recursive: true,
Fields: "PrimaryImageAspectRatio"
};
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
$('#items', page).html(Dashboard.getPosterViewHtml({
items: result.Items,
useAverageAspectRatio: true
}));
});
});
})(jQuery, document);