Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/914e891689af38911332d14b18b4a1b4834cd9ae
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
20 additions and
5 deletions
@ -2956,7 +2956,7 @@ namespace Emby.Server.Implementations.Library
throw new InvalidOperationException ( ) ;
}
public async Task AddVirtualFolder ( string name , string collectionType , LibraryOptions options , bool refreshLibrary )
public async Task AddVirtualFolder ( string name , CollectionTypeOptions ? collectionType , LibraryOptions options , bool refreshLibrary )
{
if ( string . IsNullOrWhiteSpace ( name ) )
{
@ -2990,9 +2990,9 @@ namespace Emby.Server.Implementations.Library
{
Directory . CreateDirectory ( virtualFolderPath ) ;
if ( ! string . IsNullOrEmpty ( collectionType ) )
if ( collectionType ! = null )
{
var path = Path . Combine ( virtualFolderPath , collectionType + ".collection" ) ;
var path = Path . Combine ( virtualFolderPath , collectionType . ToString ( ) + ".collection" ) ;
File . WriteAllBytes ( path , Array . Empty < byte > ( ) ) ;
}
@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task < ActionResult > AddVirtualFolder (
[FromQuery] string? name ,
[FromQuery] string ? collectionType ,
[FromQuery] CollectionTypeOptions ? collectionType ,
[FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] string [ ] paths ,
[FromBody] AddVirtualFolderDto ? libraryOptionsDto ,
[FromQuery] bool refreshLibrary = false )
@ -542,7 +542,7 @@ namespace MediaBrowser.Controller.Library
Guid GetMusicGenreId ( string name ) ;
Task AddVirtualFolder ( string name , string collectionType , LibraryOptions options , bool refreshLibrary ) ;
Task AddVirtualFolder ( string name , CollectionTypeOptions ? collectionType , LibraryOptions options , bool refreshLibrary ) ;
Task RemoveVirtualFolder ( string name , bool refreshLibrary ) ;
@ -0,0 +1,15 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Entities
{
public enum CollectionTypeOptions
{
Movies ,
Music ,
TvShows ,
Books ,
HomeVideos ,
MusicVideos ,
Mixed
}
}