support more embedded video metadata

This commit is contained in:
Luke Pulverenti 2016-02-17 21:55:15 -05:00
parent b43d55182d
commit 3d4ec9caf1
18 changed files with 3367 additions and 3369 deletions

File diff suppressed because it is too large Load diff

View file

@ -468,7 +468,10 @@
});
break;
case 'playlist':
PlaylistManager.showPanel([itemId]);
require(['playlistManager'], function (playlistManager) {
playlistManager.showPanel([itemId]);
});
break;
case 'delete':
LibraryBrowser.deleteItems([itemId]);
@ -1164,8 +1167,11 @@
hideSelections();
break;
case 'playlist':
PlaylistManager.showPanel(items);
hideSelections();
require(['playlistManager'], function (playlistManager) {
playlistManager.showPanel(items);
hideSelections();
});
break;
case 'delete':
LibraryBrowser.deleteItems(items).then(function () {

View file

@ -1,6 +1,6 @@
(function ($, document) {
define([], function () {
window.PlaylistManager = {
return {
showPanel: function (items) {
@ -17,5 +17,4 @@
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
}
};
})(jQuery, document);
});

View file

@ -1845,6 +1845,8 @@ var AppInfo = {};
paths.appStorage = apiClientBowerPath + "/appstorage";
}
paths.playlistManager = "scripts/playlistmanager";
var sha1Path = bowerPath + "/cryptojslib/components/sha1-min";
var md5Path = bowerPath + "/cryptojslib/components/md5-min";
var shim = {};
@ -1955,7 +1957,6 @@ var AppInfo = {};
define("localassetmanager", [apiClientBowerPath + "/localassetmanager"]);
define("fileupload", [apiClientBowerPath + "/fileupload"]);
}
define("apiclient-deferred", ["legacy/deferred"]);
define("connectionmanager", [apiClientBowerPath + "/connectionmanager"]);
define("contentuploader", [apiClientBowerPath + "/sync/contentuploader"]);
@ -2228,6 +2229,8 @@ var AppInfo = {};
deps.push('css!devices/android/android.css');
} else if (AppInfo.isNativeApp && browserInfo.safari) {
deps.push('css!devices/ios/ios.css');
} else if (AppInfo.isNativeApp && browserInfo.edge) {
deps.push('css!devices/windowsphone/wp.css');
} else if (!browserInfo.android) {
deps.push('css!devices/android/android.css');
}
@ -2255,7 +2258,6 @@ var AppInfo = {};
deps.push('scripts/search');
deps.push('scripts/librarylist');
deps.push('scripts/alphapicker');
deps.push('scripts/playlistmanager');
deps.push('scripts/sync');
deps.push('scripts/backdrops');
deps.push('scripts/librarymenu');
@ -2279,7 +2281,6 @@ var AppInfo = {};
postInitDependencies.push('scripts/remotecontrol');
postInitDependencies.push('css!css/notifications.css');
postInitDependencies.push('css!css/chromecast.css');
postInitDependencies.push('apiclient-deferred');
if (Dashboard.isRunningInCordova()) {