mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
add SeriesStudioInfo object
This commit is contained in:
@@ -1351,6 +1351,27 @@ namespace Emby.Server.Implementations.Dto
|
||||
if (episodeSeries != null)
|
||||
{
|
||||
dto.SeriesStudio = episodeSeries.Studios.FirstOrDefault();
|
||||
if (!string.IsNullOrWhiteSpace(dto.SeriesStudio))
|
||||
{
|
||||
try
|
||||
{
|
||||
var studio = _libraryManager.GetStudio(dto.SeriesStudio);
|
||||
|
||||
if (studio != null)
|
||||
{
|
||||
dto.SeriesStudioInfo = new StudioDto
|
||||
{
|
||||
Name = dto.SeriesStudio,
|
||||
Id = studio.Id.ToString("N"),
|
||||
PrimaryImageTag = GetImageCacheTag(studio, ImageType.Primary)
|
||||
};
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -341,13 +341,13 @@ namespace Emby.Server.Implementations.Library
|
||||
}
|
||||
if (item is IItemByName)
|
||||
{
|
||||
if (!(item is MusicArtist))
|
||||
if (!(item is MusicArtist) && !(item is Studio))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.IsFolder)
|
||||
else if (item.IsFolder)
|
||||
{
|
||||
//if (!(item is ICollectionFolder) && !(item is UserView) && !(item is Channel) && !(item is AggregateFolder))
|
||||
//{
|
||||
|
||||
@@ -1594,7 +1594,17 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||
|
||||
private void Process_Exited(object sender, EventArgs e)
|
||||
{
|
||||
((IProcess)sender).Dispose();
|
||||
var process = (IProcess)sender;
|
||||
try
|
||||
{
|
||||
_logger.Info("Recording post-processing script completed with exit code {0}", process.ExitCode);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
process.Dispose();
|
||||
}
|
||||
|
||||
private async Task SaveRecordingImage(string recordingPath, LiveTvProgram program, ItemImageInfo image)
|
||||
|
||||
Reference in New Issue
Block a user