Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/fe41aada06a2b29b1d73ef9df6cf49faf2150b6f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
8 changed files with
39 additions and
5 deletions
@ -28,7 +28,7 @@ function createMapStateToProps() {
qualityProfileId : collection . qualityProfileId ,
minimumAvailability : collection . minimumAvailability ,
searchForMovie : collection . searchOnAdd ,
tags : [ ]
tags : collection . tags || [ ]
} ;
const {
@ -50,6 +50,7 @@ class EditCollectionModalContent extends Component {
minimumAvailability ,
// Id,
rootFolderPath ,
tags ,
searchOnAdd
} = item ;
@ -126,6 +127,17 @@ class EditCollectionModalContent extends Component {
/ >
< / F o r m G r o u p >
< FormGroup >
< FormLabel > { translate ( 'Tags' ) } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . TAG }
name = "tags"
onChange = { onInputChange }
{ ... tags }
/ >
< / F o r m G r o u p >
< FormGroup >
< FormLabel > { translate ( 'SearchOnAdd' ) } < / F o r m L a b e l >
@ -42,6 +42,7 @@ function createMapStateToProps() {
qualityProfileId : collection . qualityProfileId ,
minimumAvailability : collection . minimumAvailability ,
rootFolderPath : collection . rootFolderPath ,
tags : collection . tags ,
searchOnAdd : collection . searchOnAdd
} ;
@ -0,0 +1,14 @@
using FluentMigrator ;
using NzbDrone.Core.Datastore.Migration.Framework ;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(225)]
public class add_tags_to_collections : NzbDroneMigrationBase
{
protected override void MainDbUpgrade ( )
{
Alter . Table ( "Collections" ) . AddColumn ( "Tags" ) . AsString ( ) . Nullable ( ) ;
}
}
}
@ -25,6 +25,7 @@ namespace NzbDrone.Core.Movies.Collections
public List < MediaCover . MediaCover > Images { get ; set ; }
public DateTime Added { get ; set ; }
public List < MovieMetadata > Movies { get ; set ; }
public HashSet < int > Tags { get ; set ; }
public void ApplyChanges ( MovieCollection otherCollection )
{
@ -35,6 +36,7 @@ namespace NzbDrone.Core.Movies.Collections
QualityProfileId = otherCollection . QualityProfileId ;
MinimumAvailability = otherCollection . MinimumAvailability ;
RootFolderPath = otherCollection . RootFolderPath ;
Tags = otherCollection . Tags ;
}
}
}
@ -139,7 +139,8 @@ namespace NzbDrone.Core.Movies
SearchForMovie = collection . SearchOnAdd ,
AddMethod = AddMovieMethod . Collection
} ,
Monitored = true
Monitored = true ,
Tags = collection . Tags
} ) . ToList ( ) , true ) ;
}
}
@ -141,7 +141,8 @@ namespace NzbDrone.Core.Movies
SearchOnAdd = movie . AddOptions ? . SearchForMovie ? ? false ,
QualityProfileId = movie . ProfileId ,
MinimumAvailability = movie . MinimumAvailability ,
RootFolderPath = _folderService . GetBestRootFolderPath ( movie . Path ) . TrimEnd ( '/' , '\\' , ' ' )
RootFolderPath = _folderService . GetBestRootFolderPath ( movie . Path ) . TrimEnd ( '/' , '\\' , ' ' ) ,
Tags = movie . Tags
} ) ;
if ( newCollection ! = null )
@ -26,6 +26,7 @@ namespace Radarr.Api.V3.Collections
public MovieStatusType MinimumAvailability { get ; set ; }
public List < CollectionMovieResource > Movies { get ; set ; }
public int MissingMovies { get ; set ; }
public HashSet < int > Tags { get ; set ; }
}
public static class CollectionResourceMapper
@ -49,7 +50,8 @@ namespace Radarr.Api.V3.Collections
QualityProfileId = model . QualityProfileId ,
RootFolderPath = model . RootFolderPath ,
MinimumAvailability = model . MinimumAvailability ,
SearchOnAdd = model . SearchOnAdd
SearchOnAdd = model . SearchOnAdd ,
Tags = model . Tags
} ;
}
@ -76,7 +78,8 @@ namespace Radarr.Api.V3.Collections
QualityProfileId = resource . QualityProfileId ,
RootFolderPath = resource . RootFolderPath ,
SearchOnAdd = resource . SearchOnAdd ,
MinimumAvailability = resource . MinimumAvailability
MinimumAvailability = resource . MinimumAvailability ,
Tags = resource . Tags
} ;
}