Minor code fixes (cvium)

This commit is contained in:
Nick 2023-06-23 14:30:55 -07:00
parent 619d1d47f2
commit a2a144869d
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class TrickplayImagesTask : IScheduledTask
while (startIndex < numberOfVideos)
{
query.StartIndex = startIndex;
var videos = _libraryManager.GetItemList(query).OfType<Video>().ToList();
var videos = _libraryManager.GetItemList(query).OfType<Video>();
foreach (var video in videos)
{

View File

@ -247,7 +247,7 @@ public class TrickplayManager : ITrickplayManager
/*
* Move trickplay tiles to output directory
*/
Directory.CreateDirectory(outputDir);
Directory.CreateDirectory(Directory.GetParent(outputDir)!.FullName);
// Replace existing tile grids if they already exist
if (Directory.Exists(outputDir))