Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/7b288bfcd3153da0fd3b3f67e2c9db23a32c6093
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
17 additions and
4 deletions
@ -55,7 +55,10 @@ class AlbumDetailsPageConnector extends Component {
populate = ( ) => {
const foreignAlbumId = this . props . foreignAlbumId ;
this . setState ( { hasMounted : true } ) ;
this . props . fetchAlbums ( { foreignAlbumId } ) ;
this . props . fetchAlbums ( {
foreignAlbumId ,
includeAllArtistAlbums : true
} ) ;
}
unpopulate = ( ) => {
@ -42,6 +42,7 @@ namespace Lidarr.Api.V1.Albums
var artistIdQuery = Request . Query . ArtistId ;
var albumIdsQuery = Request . Query . AlbumIds ;
var foreignIdQuery = Request . Query . ForeignAlbumId ;
var includeAllArtistAlbumsQuery = Request . Query . IncludeAllArtistAlbums ;
if ( ! Request . Query . ArtistId . HasValue & & ! albumIdsQuery . HasValue & & ! foreignIdQuery . HasValue )
{
@ -57,9 +58,18 @@ namespace Lidarr.Api.V1.Albums
if ( foreignIdQuery . HasValue )
{
int artistId = _albumService . FindById ( foreignIdQuery . Value ) . ArtistId ;
return MapToResource ( _albumService . GetAlbumsByArtist ( artistId ) , false ) ;
string foreignAlbumId = foreignIdQuery . Value . ToString ( ) ;
var album = _albumService . FindById ( foreignAlbumId ) ;
if ( includeAllArtistAlbumsQuery . HasValue & & Convert . ToBoolean ( includeAllArtistAlbumsQuery . Value ) )
{
return MapToResource ( _albumService . GetAlbumsByArtist ( album . ArtistId ) , false ) ;
}
else
{
return MapToResource ( new List < Album > { album } , false ) ;
}
}
string albumIdsValue = albumIdsQuery . Value . ToString ( ) ;