aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Providers/LocalTrailerProvider.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-20 21:51:00 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-20 21:51:00 -0400
commite6a95defc9c6dd34b25ca80dab920e8619d3e34d (patch)
treed4f884cf1ca8ac68317d6bc5d77c31b2589f23da /MediaBrowser.Controller/Providers/LocalTrailerProvider.cs
parent906ad3cb1a089c1679aabe43633c2fffd4145185 (diff)
Fixed a file system issue and also added a few more performance tweaks
Diffstat (limited to 'MediaBrowser.Controller/Providers/LocalTrailerProvider.cs')
-rw-r--r--MediaBrowser.Controller/Providers/LocalTrailerProvider.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Providers/LocalTrailerProvider.cs b/MediaBrowser.Controller/Providers/LocalTrailerProvider.cs
index e7e0bd828..2476df7cd 100644
--- a/MediaBrowser.Controller/Providers/LocalTrailerProvider.cs
+++ b/MediaBrowser.Controller/Providers/LocalTrailerProvider.cs
@@ -32,8 +32,10 @@ namespace MediaBrowser.Controller.Providers
List<Video> localTrailers = new List<Video>();
- foreach (string file in allFiles)
+ for (int i = 0; i < allFiles.Length; i++)
{
+ string file = allFiles[i];
+
BaseItem child = await Kernel.Instance.ItemController.GetItem(file).ConfigureAwait(false);
Video video = child as Video;