1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00
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

View File

@@ -1,6 +1,6 @@
<div class="row">
<div class="col-md-9">
{{qualityProfile qualityProfileId}}
{{profile profileId}}
<span class="label label-info">{{network}}</span>
<span class="label label-info">{{runtime}} minutes</span>
<span class="label label-info">{{path}}</span>

View File

@@ -3,17 +3,17 @@ define(
[
'vent',
'marionette',
'Quality/QualityProfileCollection',
'Profile/ProfileCollection',
'Mixins/AsModelBoundView',
'Mixins/AsValidatedView',
'Mixins/AutoComplete'
], function (vent, Marionette, QualityProfiles, AsModelBoundView, AsValidatedView) {
], function (vent, Marionette, Profiles, AsModelBoundView, AsValidatedView) {
var view = Marionette.ItemView.extend({
template: 'Series/Edit/EditSeriesViewTemplate',
ui: {
qualityProfile: '.x-quality-profile',
profile: '.x-profile',
path : '.x-path'
},
@@ -24,14 +24,14 @@ define(
initialize: function () {
this.model.set('qualityProfiles', QualityProfiles);
this.model.set('profiles', Profiles);
},
_saveSeries: function () {
var self = this;
var qualityProfileId = this.ui.qualityProfile.val();
this.model.set({ qualityProfileId: qualityProfileId});
var profileId = this.ui.profile.val();
this.model.set({ profileId: profileId});
this.model.save().done(function () {
self.trigger('saved');

View File

@@ -58,11 +58,11 @@
</div>
<div class="form-group">
<label class="col-sm-4 control-label">Quality Profile</label>
<label class="col-sm-4 control-label">Profile</label>
<div class="col-sm-4">
<select class="form-control x-quality-profile" name="qualityProfileId">
{{#each qualityProfiles.models}}
<select class="form-control x-profile" id="inputProfile" name="profileId">
{{#each profiles.models}}
<option value="{{id}}">{{attributes.name}}</option>
{{/each}}
</select>

View File

@@ -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', '');

View File

@@ -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>

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'
}
],

View File

@@ -45,7 +45,7 @@
{{seasonCountHelper}}
{{qualityProfile qualityProfileId}}
{{profile profileId}}
</div>
<div class="col-md-2 col-xs-4">
{{> EpisodeProgressPartial }}

View File

@@ -11,7 +11,7 @@ define(
'Cells/RelativeDateCell',
'Cells/SeriesTitleCell',
'Cells/TemplatedCell',
'Cells/QualityProfileCell',
'Cells/ProfileCell',
'Cells/EpisodeProgressCell',
'Cells/SeriesActionsCell',
'Cells/SeriesStatusCell',
@@ -29,7 +29,7 @@ define(
RelativeDateCell,
SeriesTitleCell,
TemplatedCell,
QualityProfileCell,
ProfileCell,
EpisodeProgressCell,
SeriesActionsCell,
SeriesStatusCell,
@@ -65,9 +65,9 @@ define(
cell : 'integer'
},
{
name : 'qualityProfileId',
label : 'Quality',
cell : QualityProfileCell
name : 'profileId',
label: 'Profile',
cell : ProfileCell
},
{
name : 'network',
@@ -165,7 +165,7 @@ define(
},
{
title: 'Quality',
name : 'qualityProfileId'
name : 'profileId'
},
{
title: 'Network',