mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 13:28:27 +01:00
Do better to make sure hls files are cleaned up
This commit is contained in:
@@ -52,14 +52,30 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public int GetLimit(ImageType type)
|
||||
{
|
||||
ImageOption option = ImageOptions.FirstOrDefault(i => i.Type == type);
|
||||
ImageOption option = null;
|
||||
foreach (ImageOption i in ImageOptions)
|
||||
{
|
||||
if (i.Type == type)
|
||||
{
|
||||
option = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return option == null ? 1 : option.Limit;
|
||||
}
|
||||
|
||||
public int GetMinWidth(ImageType type)
|
||||
{
|
||||
ImageOption option = ImageOptions.FirstOrDefault(i => i.Type == type);
|
||||
ImageOption option = null;
|
||||
foreach (ImageOption i in ImageOptions)
|
||||
{
|
||||
if (i.Type == type)
|
||||
{
|
||||
option = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return option == null ? 0 : option.MinWidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user