mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support video_ts.nfo
This commit is contained in:
parent
4b2be0b97a
commit
91f96dbe68
42 changed files with 343 additions and 510 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
}).fail(function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('MessageInvalidUser'),
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
function handleConnectionResult(page, result) {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
|
||||
switch (result.State) {
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSignIn:
|
||||
{
|
||||
window.location = 'login.html?serverid=' + result.Servers[0].Id;
|
||||
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSelection:
|
||||
|
|
|
@ -49,7 +49,16 @@
|
|||
}).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#devicePage", function () {
|
||||
function onSubmit() {
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
save(page);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#devicePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -71,25 +80,13 @@
|
|||
});
|
||||
});
|
||||
|
||||
$('.deviceForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pageshow', "#devicePage", function () {
|
||||
}).on('pageshown', "#devicePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
loadData(page);
|
||||
});
|
||||
|
||||
window.DevicePage = {
|
||||
|
||||
onSubmit: function () {
|
||||
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
save(page);
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
|
@ -89,7 +89,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#devicesPage", function () {
|
||||
$(document).on('pageshown', "#devicesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#episodesPage", function () {
|
||||
$(document).on('pageinitdepends', "#episodesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -327,7 +327,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#episodesPage", function () {
|
||||
}).on('pageshown', "#episodesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
@ -368,9 +368,8 @@
|
|||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#episodesPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
|
@ -69,7 +69,7 @@
|
|||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#gameGenresPage", function () {
|
||||
$(document).on('pageinitdepends', "#gameGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -96,7 +96,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#gameGenresPage", function () {
|
||||
}).on('pageshown', "#gameGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -112,8 +112,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gameGenresPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#gamesPage", function () {
|
||||
$(document).on('pageinitdepends', "#gamesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -239,7 +239,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#gamesPage", function () {
|
||||
}).on('pageshown', "#gamesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
@ -266,8 +266,6 @@
|
|||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#gamesPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pagebeforeshow', "#gamesRecommendedPage", function () {
|
||||
$(document).on('pageshown', "#gamesRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#gameStudiosPage", function () {
|
||||
$(document).on('pageinitdepends', "#gameStudiosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -98,7 +98,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#gameStudiosPage", function () {
|
||||
}).on('pageshown', "#gameStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -114,8 +114,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gameStudiosPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
// Reset form values using the last used query
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshow', "#gamesystemsPage", function () {
|
||||
$(document).on('pageshown', "#gamesystemsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -68,8 +68,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gamesystemsPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#itemListPage", function () {
|
||||
$(document).on('pageinitdepends', "#itemListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -250,7 +250,7 @@
|
|||
|
||||
$(page).on('click', '.mediaItem', onListItemClick);
|
||||
|
||||
}).on('pageshow', "#itemListPage", function () {
|
||||
}).on('pageshown', "#itemListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -535,7 +535,7 @@
|
|||
html += '</div>';
|
||||
|
||||
html += '<div class="detailsMenuContent" style="background-position:center center;background-repeat:no-repeat;background-size:cover;">';
|
||||
html += '<div style="padding:.5em 1em 1em;background:rgba(0,0,0,.80);" class="detailsMenuContentInner">';
|
||||
html += '<div style="padding:.5em 1em 1em;background:rgba(10,10,10,.80);" class="detailsMenuContentInner">';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
|
@ -594,7 +594,7 @@
|
|||
|
||||
var background = 'none';
|
||||
|
||||
if (!AppInfo.hasLowImageBandwidth) {
|
||||
if (AppInfo.enableDetailsMenuImages) {
|
||||
var backdropUrl;
|
||||
var screenWidth = $(window).width();
|
||||
var backdropWidth = Math.min(screenWidth, 800);
|
||||
|
@ -627,7 +627,7 @@
|
|||
|
||||
var headerHtml = LibraryBrowser.getPosterViewDisplayName(item);
|
||||
$('.detailsMenuHeader', elem).removeClass('detailsMenuHeaderWithLogo');
|
||||
if (!AppInfo.hasLowImageBandwidth) {
|
||||
if (AppInfo.enableDetailsMenuImages) {
|
||||
|
||||
var logoUrl;
|
||||
|
||||
|
|
|
@ -406,7 +406,8 @@
|
|||
var options = {
|
||||
|
||||
Recursive: true,
|
||||
IncludeItemTypes: "BoxSet"
|
||||
IncludeItemTypes: "BoxSet",
|
||||
SortBy: "SortName"
|
||||
};
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#musicGenresPage", function () {
|
||||
$(document).on('pageinitdepends', "#musicGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -120,7 +120,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#musicGenresPage", function () {
|
||||
}).on('pageshown', "#musicGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -136,8 +136,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#musicGenresPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#musicVideosPage", function () {
|
||||
$(document).on('pageinitdepends', "#musicVideosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -189,7 +189,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#musicVideosPage", function () {
|
||||
}).on('pageshown', "#musicVideosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -208,8 +208,6 @@
|
|||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('pageshow', "#musicVideosPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
ApiClient.ajax({
|
||||
type: "DELETE",
|
||||
url: ApiClient.getUrl('Auth/Keys/' + key)
|
||||
|
||||
|
||||
}).done(function () {
|
||||
|
||||
loadData(page);
|
||||
|
@ -95,7 +95,31 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#serverSecurityPage", function () {
|
||||
function onSubmit() {
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.ajax({
|
||||
type: "POST",
|
||||
url: ApiClient.getUrl('Auth/Keys/', {
|
||||
|
||||
App: $('#txtAppName', form).val()
|
||||
|
||||
})
|
||||
|
||||
}).done(function () {
|
||||
|
||||
$('.newKeyPanel', page).panel('close');
|
||||
|
||||
loadData(page);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#serverSecurityPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -107,39 +131,13 @@
|
|||
|
||||
});
|
||||
|
||||
}).on('pageshow', "#serverSecurityPage", function () {
|
||||
$('.newKeyForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pageshown', "#serverSecurityPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
loadData(page);
|
||||
});
|
||||
|
||||
window.ServerSecurityPage = {
|
||||
|
||||
onSubmit: function(e) {
|
||||
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.ajax({
|
||||
type: "POST",
|
||||
url: ApiClient.getUrl('Auth/Keys/', {
|
||||
|
||||
App: $('#txtAppName', form).val()
|
||||
|
||||
})
|
||||
|
||||
}).done(function () {
|
||||
|
||||
$('.newKeyPanel', page).panel('close');
|
||||
|
||||
loadData(page);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
|
@ -34,7 +34,12 @@ var Dashboard = {
|
|||
|
||||
//$.mobile.popup.prototype.options.theme = "c";
|
||||
$.mobile.popup.prototype.options.transition = "fade";
|
||||
$.mobile.defaultPageTransition = "none";
|
||||
|
||||
if ($.browser.mobile) {
|
||||
$.mobile.defaultPageTransition = "slide";
|
||||
} else {
|
||||
$.mobile.defaultPageTransition = "none";
|
||||
}
|
||||
//$.mobile.collapsible.prototype.options.contentTheme = "a";
|
||||
|
||||
// Make panels a little larger than the defaults
|
||||
|
@ -776,7 +781,7 @@ var Dashboard = {
|
|||
if (item.selected) {
|
||||
menuHtml += '<a class="sidebarLink selectedSidebarLink" href="' + item.href + '">';
|
||||
} else {
|
||||
menuHtml += '<a class="sidebarLink" href="' + item.href + '">';
|
||||
menuHtml += '<a data-transition="none" class="sidebarLink" href="' + item.href + '">';
|
||||
}
|
||||
|
||||
menuHtml += '<span class="fa ' + item.icon + ' sidebarLinkIcon"' + style + '></span>';
|
||||
|
@ -802,7 +807,7 @@ var Dashboard = {
|
|||
|
||||
html += '<div data-role="panel" id="dashboardPanel" class="dashboardPanel" data-position="left" data-display="overlay" data-position-fixed="true" data-theme="a">';
|
||||
|
||||
html += '<p class="libraryPanelHeader" style="margin: 15px 0 15px 15px;"><a href="index.html" class="imageLink"><img src="css/images/mblogoicon.png" /><span style="color:#333;">EMBY</span></a></p>';
|
||||
html += '<p class="libraryPanelHeader" style="margin: 15px 0 15px 15px;"><a href="index.html" data-transition="none" class="imageLink"><img src="css/images/mblogoicon.png" /><span style="color:#333;">EMBY</span></a></p>';
|
||||
|
||||
html += '<div class="sidebarLinks">';
|
||||
html += menuHtml;
|
||||
|
@ -1367,10 +1372,18 @@ var Dashboard = {
|
|||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
|
||||
quality -= 50;
|
||||
// The native app can handle a little bit more than safari
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
|
||||
if (isBackdrop) {
|
||||
//quality -= 20;
|
||||
quality -= 30;
|
||||
|
||||
if (isBackdrop) {
|
||||
quality -= 10;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
quality -= 50;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1383,6 +1396,11 @@ var Dashboard = {
|
|||
|
||||
options.enableImageEnhancers = false;
|
||||
}
|
||||
|
||||
if (AppInfo.forcedImageFormat && options.type != 'Logo') {
|
||||
options.format = AppInfo.forcedImageFormat;
|
||||
options.backgroundColor = '#1f1f1f';
|
||||
}
|
||||
},
|
||||
|
||||
getAppInfo: function () {
|
||||
|
@ -1488,14 +1506,19 @@ var AppInfo = {};
|
|||
|
||||
if ($.browser.mobile) {
|
||||
AppInfo.hasLowImageBandwidth = true;
|
||||
AppInfo.enableDetailsMenuImages = false;
|
||||
AppInfo.forcedImageFormat = 'jpg';
|
||||
}
|
||||
|
||||
if (isCordova) {
|
||||
AppInfo.enableBottomTabs = true;
|
||||
AppInfo.enableDetailsMenuImages = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
AppInfo.enableDetailsMenuImages = true;
|
||||
|
||||
if (!$.browser.tv) {
|
||||
AppInfo.enableHeadRoom = true;
|
||||
}
|
||||
|
@ -1768,7 +1791,8 @@ var AppInfo = {};
|
|||
'*': {
|
||||
'css': 'thirdparty/requirecss' // or whatever the path to require-css is
|
||||
}
|
||||
}
|
||||
},
|
||||
urlArgs: "v=" + window.dashboardVersion
|
||||
});
|
||||
|
||||
// Required since jQuery is loaded before requireJs
|
||||
|
@ -1783,6 +1807,10 @@ var AppInfo = {};
|
|||
|
||||
document.addEventListener("deviceready", function () {
|
||||
|
||||
if ($.browser.safari) {
|
||||
requirejs(['thirdparty/cordova/imagestore.js']);
|
||||
}
|
||||
|
||||
$(onReady);
|
||||
|
||||
}, false);
|
||||
|
@ -1841,6 +1869,8 @@ $(document).on('pagecreate', ".page", function () {
|
|||
$(page).trigger('pageinitdepends');
|
||||
}
|
||||
|
||||
$('.localnav a, .libraryViewNav a').attr('data-transition', 'none');
|
||||
|
||||
}).on('pageshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
$('#selectView', page).val(view).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#tvGenresPage", function () {
|
||||
$(document).on('pageinitdepends', "#tvGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -178,7 +178,7 @@
|
|||
LibraryBrowser.saveViewSetting(getSavedQueryKey(), view);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#tvGenresPage", function () {
|
||||
}).on('pageshown', "#tvGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
var page = this;
|
||||
|
@ -203,8 +203,6 @@
|
|||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#tvGenresPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
$('.alphabetPicker', page).alphaValue(query.NameStartsWithOrGreater);
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#tvPeoplePage", function () {
|
||||
$(document).on('pageinitdepends', "#tvPeoplePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#tvPeoplePage", function () {
|
||||
}).on('pageshown', "#tvPeoplePage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -163,8 +163,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvPeoplePage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#tvStudiosPage", function () {
|
||||
$(document).on('pageinitdepends', "#tvStudiosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -108,7 +108,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#tvStudiosPage", function () {
|
||||
}).on('pageshown', "#tvStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
@ -124,8 +124,6 @@
|
|||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvStudiosPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pagebeforeshow', "#tvUpcomingPage", function () {
|
||||
$(document).on('pageshown', "#tvUpcomingPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue