mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
fixes #2992 - Dashboard Active Recordings not showing thumbnail
This commit is contained in:
parent
47d7eaeedb
commit
46be272ec8
|
@ -1897,7 +1897,15 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||||
imageSaveFilenameWithoutExtension = "logo";
|
imageSaveFilenameWithoutExtension = "logo";
|
||||||
break;
|
break;
|
||||||
case ImageType.Thumb:
|
case ImageType.Thumb:
|
||||||
imageSaveFilenameWithoutExtension = "landscape";
|
if (program.IsSeries)
|
||||||
|
{
|
||||||
|
imageSaveFilenameWithoutExtension = Path.GetFileNameWithoutExtension(recordingPath) + "-thumb";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
imageSaveFilenameWithoutExtension = "landscape";
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case ImageType.Backdrop:
|
case ImageType.Backdrop:
|
||||||
imageSaveFilenameWithoutExtension = "fanart";
|
imageSaveFilenameWithoutExtension = "fanart";
|
||||||
|
@ -1921,9 +1929,11 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||||
|
|
||||||
private async Task SaveRecordingImages(string recordingPath, LiveTvProgram program)
|
private async Task SaveRecordingImages(string recordingPath, LiveTvProgram program)
|
||||||
{
|
{
|
||||||
var image = program.GetImageInfo(ImageType.Primary, 0);
|
var image = program.IsSeries ?
|
||||||
|
(program.GetImageInfo(ImageType.Thumb, 0) ?? program.GetImageInfo(ImageType.Primary, 0)) :
|
||||||
|
(program.GetImageInfo(ImageType.Primary, 0) ?? program.GetImageInfo(ImageType.Thumb, 0));
|
||||||
|
|
||||||
if (image != null && program.IsMovie)
|
if (image != null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue