Indexes are created with the same uniqueness when copying a table

New: Non-English episode support
New: Renamed Quality Profiles to Profiles and made them more powerful
New: Configurable wait time before grabbing a release to wait for a better quality
This commit is contained in:
Mark McDowall
2014-06-08 01:22:55 -07:00
parent b72678a9ad
commit 74a38415cf
182 changed files with 2493 additions and 2433 deletions
+5 -5
View File
@@ -2,15 +2,15 @@
define(
[
'handlebars',
'Quality/QualityProfileCollection'
], function (Handlebars, QualityProfileCollection) {
'Profile/ProfileCollection'
], function (Handlebars, ProfileCollection) {
Handlebars.registerHelper('qualityProfile', function (profileId) {
Handlebars.registerHelper('profile', function (profileId) {
var profile = QualityProfileCollection.get(profileId);
var profile = ProfileCollection.get(profileId);
if (profile) {
return new Handlebars.SafeString('<span class="label label-default quality-profile-label">' + profile.get('name') + '</span>');
return new Handlebars.SafeString('<span class="label label-default profile-label">' + profile.get("name") + '</span>');
}
return undefined;
+9
View File
@@ -0,0 +1,9 @@
'use strict';
define(
[
'handlebars'
], function (Handlebars) {
Handlebars.registerHelper('TitleCase', function (input) {
return new Handlebars.SafeString(input.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}));
});
});