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,7 +5,7 @@ define(
'marionette',
'backgrid',
'vent',
'Quality/QualityProfileCollection',
'Profile/ProfileCollection',
'AddSeries/RootFolders/RootFolderCollection',
'Shared/Toolbar/ToolbarLayout',
'AddSeries/RootFolders/RootFolderLayout',
@@ -15,7 +15,7 @@ define(
Marionette,
Backgrid,
vent,
QualityProfiles,
Profiles,
RootFolders,
ToolbarLayout,
RootFolderLayout,
@@ -26,7 +26,7 @@ define(
ui: {
monitored : '.x-monitored',
qualityProfile : '.x-quality-profiles',
profile : '.x-profiles',
seasonFolder : '.x-season-folder',
rootFolder : '.x-root-folder',
selectedCount : '.x-selected-count',
@@ -43,8 +43,8 @@ define(
templateHelpers: function () {
return {
qualityProfiles: QualityProfiles,
rootFolders : RootFolders.toJSON()
profiles : Profiles,
rootFolders: RootFolders.toJSON()
};
},
@@ -68,7 +68,7 @@ define(
var selected = this.editorGrid.getSelectedModels();
var monitored = this.ui.monitored.val();
var profile = this.ui.qualityProfile.val();
var profile = this.ui.profile.val();
var seasonFolder = this.ui.seasonFolder.val();
var rootFolder = this.ui.rootFolder.val();
@@ -82,7 +82,7 @@ define(
}
if (profile !== 'noChange') {
model.set('qualityProfileId', parseInt(profile, 10));
model.set('profileId', parseInt(profile, 10));
}
if (seasonFolder === 'true') {
@@ -113,7 +113,7 @@ define(
if (selectedCount === 0) {
this.ui.monitored.attr('disabled', '');
this.ui.qualityProfile.attr('disabled', '');
this.ui.profile.attr('disabled', '');
this.ui.seasonFolder.attr('disabled', '');
this.ui.rootFolder.attr('disabled', '');
this.ui.saveButton.attr('disabled', '');
@@ -122,7 +122,7 @@ define(
else {
this.ui.monitored.removeAttr('disabled', '');
this.ui.qualityProfile.removeAttr('disabled', '');
this.ui.profile.removeAttr('disabled', '');
this.ui.seasonFolder.removeAttr('disabled', '');
this.ui.rootFolder.removeAttr('disabled', '');
this.ui.saveButton.removeAttr('disabled', '');
@@ -21,11 +21,11 @@
</div>
<div class="form-group col-md-2">
<label>Quality Profile</label>
<label>Profile</label>
<select class="form-control x-quality-profiles">
<select class="form-control x-profiles">
<option value="noChange">No change</option>
{{#each qualityProfiles.models}}
{{#each profiles.models}}
<option value="{{id}}">{{attributes.name}}</option>
{{/each}}
</select>
+26 -26
View File
@@ -7,7 +7,7 @@ define(
'Series/Index/EmptyView',
'Series/SeriesCollection',
'Cells/SeriesTitleCell',
'Cells/QualityProfileCell',
'Cells/ProfileCell',
'Cells/SeriesStatusCell',
'Cells/SeasonFolderCell',
'Shared/Toolbar/ToolbarLayout',
@@ -19,7 +19,7 @@ define(
EmptyView,
SeriesCollection,
SeriesTitleCell,
QualityProfileCell,
ProfileCell,
SeriesStatusCell,
SeasonFolderCell,
ToolbarLayout,
@@ -33,10 +33,10 @@ define(
},
ui: {
monitored : '.x-monitored',
qualityProfiles: '.x-quality-profiles',
rootFolder : '.x-root-folder',
selectedCount : '.x-selected-count'
monitored : '.x-monitored',
profiles : '.x-profiles',
rootFolder : '.x-root-folder',
selectedCount : '.x-selected-count'
},
events: {
@@ -47,36 +47,36 @@ define(
columns:
[
{
name : '',
cell : 'select-row',
headerCell: 'select-all',
sortable : false
name : '',
cell : 'select-row',
headerCell : 'select-all',
sortable : false
},
{
name : 'statusWeight',
label : '',
cell : SeriesStatusCell
name : 'statusWeight',
label : '',
cell : SeriesStatusCell
},
{
name : 'title',
label : 'Title',
cell : SeriesTitleCell,
cellValue : 'this'
name : 'title',
label : 'Title',
cell : SeriesTitleCell,
cellValue : 'this'
},
{
name : 'qualityProfileId',
label : 'Quality',
cell : QualityProfileCell
name : 'profileId',
label : 'Profile',
cell : ProfileCell
},
{
name : 'seasonFolder',
label : 'Season Folder',
cell : SeasonFolderCell
name : 'seasonFolder',
label : 'Season Folder',
cell : SeasonFolderCell
},
{
name : 'path',
label : 'Path',
cell : 'string'
name : 'path',
label : 'Path',
cell : 'string'
}
],