Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/aea255f91026598c297d11f032cc483b8608616d?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
11 additions and
4 deletions
@ -88,7 +88,14 @@ public class LibraryStructureController : BaseJellyfinApiController
libraryOptions . PathInfos = Array . ConvertAll ( paths , i = > new MediaPathInfo ( i ) ) ;
libraryOptions . PathInfos = Array . ConvertAll ( paths , i = > new MediaPathInfo ( i ) ) ;
}
}
await _libraryManager . AddVirtualFolder ( name , collectionType , libraryOptions , refreshLibrary ) . ConfigureAwait ( false ) ;
try
{
await _libraryManager . AddVirtualFolder ( name , collectionType , libraryOptions , refreshLibrary ) . ConfigureAwait ( false ) ;
}
catch ( System . Exception ex )
{
return BadRequest ( ex . ToString ( ) ) ;
}
return NoContent ( ) ;
return NoContent ( ) ;
}
}
@ -83,7 +83,7 @@ public sealed class BaseItemRepository(
context . Peoples . Where ( e = > e . BaseItems ! . Count = = 0 ) . ExecuteDelete ( ) ;
context . Peoples . Where ( e = > e . BaseItems ! . Count = = 0 ) . ExecuteDelete ( ) ;
context . Chapters . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . Chapters . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . MediaStreamInfos . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . MediaStreamInfos . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . AncestorIds . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . AncestorIds . Where ( e = > e . ItemId = = id | | e . ParentItemId = = id ) . ExecuteDelete ( ) ;
context . ItemValuesMap . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . ItemValuesMap . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . ItemValues . Where ( e = > e . BaseItemsMap ! . Count = = 0 ) . ExecuteDelete ( ) ;
context . ItemValues . Where ( e = > e . BaseItemsMap ! . Count = = 0 ) . ExecuteDelete ( ) ;
context . BaseItemImageInfos . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
context . BaseItemImageInfos . Where ( e = > e . ItemId = = id ) . ExecuteDelete ( ) ;
@ -1292,7 +1292,7 @@ public sealed class BaseItemRepository(
{
{
if ( ! context . BaseItems . Any ( f = > f . Id = = ancestorId ) )
if ( ! context . BaseItems . Any ( f = > f . Id = = ancestorId ) )
{
{
throw new InvalidOperationException ( $"Cannot link non-existent parent: {ancestorId}" ) ;
continue ;
}
}
context . AncestorIds . Add ( new AncestorId ( )
context . AncestorIds . Add ( new AncestorId ( )
@ -77,7 +77,7 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
} ;
} ;
using var createResponse = await client . PostAsJsonAsync ( "Library/VirtualFolders?name=test&refreshLibrary=true" , createBody , _jsonOptions ) ;
using var createResponse = await client . PostAsJsonAsync ( "Library/VirtualFolders?name=test&refreshLibrary=true" , createBody , _jsonOptions ) ;
Assert . Equal( HttpStatusCode . NoContent , createResponse . StatusCode ) ;
Assert . True( createResponse . StatusCode = = HttpStatusCode . NoContent , $"Error: {await createResponse.Content.ReadAsStringAsync()}" ) ;
using var response = await client . GetAsync ( "Library/VirtualFolders" ) ;
using var response = await client . GetAsync ( "Library/VirtualFolders" ) ;
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;