mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix broken images
This commit is contained in:
parent
6a5bf9cc78
commit
57cb08085d
15
MediaBrowser.Controller/Entities/IVirtualFolderCreator.cs
Normal file
15
MediaBrowser.Controller/Entities/IVirtualFolderCreator.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
namespace MediaBrowser.Controller.Entities
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interface IVirtualFolderCreator
|
||||||
|
/// </summary>
|
||||||
|
public interface IVirtualFolderCreator
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the folder.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Folder.</returns>
|
||||||
|
BasePluginFolder GetFolder();
|
||||||
|
}
|
||||||
|
}
|
@ -230,8 +230,7 @@ namespace MediaBrowser.Controller
|
|||||||
/// Gets the list of BasePluginFolders added by plugins
|
/// Gets the list of BasePluginFolders added by plugins
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The plugin folders.</value>
|
/// <value>The plugin folders.</value>
|
||||||
[ImportMany(typeof(BasePluginFolder))]
|
internal IEnumerable<IVirtualFolderCreator> PluginFolderCreators { get; private set; }
|
||||||
internal IEnumerable<BasePluginFolder> PluginFolders { get; private set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the list of available user repositories
|
/// Gets the list of available user repositories
|
||||||
@ -387,6 +386,7 @@ namespace MediaBrowser.Controller
|
|||||||
IntroProviders = GetExports<IIntroProvider>(allTypes);
|
IntroProviders = GetExports<IIntroProvider>(allTypes);
|
||||||
PluginConfigurationPages = GetExports<IPluginConfigurationPage>(allTypes);
|
PluginConfigurationPages = GetExports<IPluginConfigurationPage>(allTypes);
|
||||||
ImageEnhancers = GetExports<IImageEnhancer>(allTypes);
|
ImageEnhancers = GetExports<IImageEnhancer>(allTypes);
|
||||||
|
PluginFolderCreators = GetExports<IVirtualFolderCreator>(allTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -186,9 +186,9 @@ namespace MediaBrowser.Controller.Library
|
|||||||
var rootFolder = Kernel.ItemRepository.RetrieveItem(rootFolderPath.GetMBId(typeof(AggregateFolder))) as AggregateFolder ?? (AggregateFolder)GetItem(rootFolderPath);
|
var rootFolder = Kernel.ItemRepository.RetrieveItem(rootFolderPath.GetMBId(typeof(AggregateFolder))) as AggregateFolder ?? (AggregateFolder)GetItem(rootFolderPath);
|
||||||
|
|
||||||
// Add in the plug-in folders
|
// Add in the plug-in folders
|
||||||
foreach (var child in Kernel.PluginFolders)
|
foreach (var child in Kernel.PluginFolderCreators)
|
||||||
{
|
{
|
||||||
rootFolder.AddVirtualChild(child);
|
rootFolder.AddVirtualChild(child.GetFolder());
|
||||||
}
|
}
|
||||||
|
|
||||||
return rootFolder;
|
return rootFolder;
|
||||||
|
@ -95,6 +95,7 @@
|
|||||||
<Compile Include="Entities\Genre.cs" />
|
<Compile Include="Entities\Genre.cs" />
|
||||||
<Compile Include="Entities\ICollectionFolder.cs" />
|
<Compile Include="Entities\ICollectionFolder.cs" />
|
||||||
<Compile Include="Entities\IndexFolder.cs" />
|
<Compile Include="Entities\IndexFolder.cs" />
|
||||||
|
<Compile Include="Entities\IVirtualFolderCreator.cs" />
|
||||||
<Compile Include="Entities\Movies\BoxSet.cs" />
|
<Compile Include="Entities\Movies\BoxSet.cs" />
|
||||||
<Compile Include="Entities\Movies\Movie.cs" />
|
<Compile Include="Entities\Movies\Movie.cs" />
|
||||||
<Compile Include="Entities\Person.cs" />
|
<Compile Include="Entities\Person.cs" />
|
||||||
|
@ -389,9 +389,9 @@
|
|||||||
<EmbeddedResource Include="Html\css\images\itemDetails\videoDefault.png" />
|
<EmbeddedResource Include="Html\css\images\itemDetails\videoDefault.png" />
|
||||||
<EmbeddedResource Include="Html\css\images\itemDetails\audioDefault.png" />
|
<EmbeddedResource Include="Html\css\images\itemDetails\audioDefault.png" />
|
||||||
<EmbeddedResource Include="Html\css\images\itemDetails\gameDefault.png" />
|
<EmbeddedResource Include="Html\css\images\itemDetails\gameDefault.png" />
|
||||||
<Content Include="Html\css\images\mblogoicon.png" />
|
<EmbeddedResource Include="Html\css\images\mblogoicon.png" />
|
||||||
<Content Include="Html\css\images\mblogotextblack.png" />
|
<EmbeddedResource Include="Html\css\images\mblogotextblack.png" />
|
||||||
<Content Include="Html\css\images\mblogotextwhite.png" />
|
<EmbeddedResource Include="Html\css\images\mblogotextwhite.png" />
|
||||||
<Content Include="Html\css\images\stars.png" />
|
<Content Include="Html\css\images\stars.png" />
|
||||||
<EmbeddedResource Include="Html\scripts\MediaPlayer.js" />
|
<EmbeddedResource Include="Html\scripts\MediaPlayer.js" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user