public IEnumerable<string> GetTrailers(ISupportsTrailers movie) { var folder = movie.MediaLocation as IFolderMediaLocation; if (folder != null && folder.ContainsChild(MovieResolver.TrailersPath)) { var trailers = folder.GetChild(MovieResolver.TrailersPath) as IFolderMediaLocation; if (trailers != null) { foreach (var path in Video.GetChildVideos(trailers, new string[] { MovieResolver.TrailersPath })) { yield return path; } } } }
public IEnumerable <string> GetTrailers(ISupportsTrailers movie) { var folder = movie.MediaLocation as IFolderMediaLocation; if (folder != null && folder.ContainsChild(MovieResolver.TrailersPath)) { var trailers = folder.GetChild(MovieResolver.TrailersPath) as IFolderMediaLocation; if (trailers != null) { foreach (var path in Video.GetChildVideos(trailers, new string[] { MovieResolver.TrailersPath })) { yield return(path); } } } }