Пример #1
0
        private IEnumerable<IMediaLocation> ChildVideos(IFolderMediaLocation location)
        {
            if (location.ContainsChild(FolderResolver.IGNORE_FOLDER) ) yield break;

            if (location.ContainsChild("mymovies.xml")) yield return null;

            if (location.ContainsChild("movie.xml")) yield return null;

            foreach (var child in location.Children) {

                // nested DVD or BD
                if (GetSpecialMediaType(child.Path.ToUpper()) != null) {
                    yield return null;
                }

                if (child.IsHidden()) continue;

                if (child.IsVideo()) {
                    yield return child;
                }
                var folder = child as IFolderMediaLocation;
                if (folder != null) {

                    if (enableTrailerSupport &&
                       folder.Name.ToUpper() == TrailersPath) {
                        continue;
                    }

                    foreach (var grandChild in ChildVideos(folder)) {
                        yield return grandChild;
                    }
                }
            }
        }
Пример #2
0
        private IEnumerable <IMediaLocation> ChildVideos(IFolderMediaLocation location)
        {
            if (location.ContainsChild(FolderResolver.IGNORE_FOLDER))
            {
                yield break;
            }

            if (location.ContainsChild("mymovies.xml"))
            {
                yield return(null);
            }

            if (location.ContainsChild("movie.xml"))
            {
                yield return(null);
            }

            foreach (var child in location.Children)
            {
                // nested DVD or BD
                if (GetSpecialMediaType(child.Path.ToUpper()) != null)
                {
                    yield return(null);
                }

                if (child.IsHidden())
                {
                    continue;
                }

                if (child.IsVideo())
                {
                    yield return(child);
                }
                var folder = child as IFolderMediaLocation;
                if (folder != null)
                {
                    if (enableTrailerSupport &&
                        folder.Name.ToUpper() == TrailersPath)
                    {
                        continue;
                    }

                    foreach (var grandChild in ChildVideos(folder))
                    {
                        yield return(grandChild);
                    }
                }
            }
        }
Пример #3
0
        private IEnumerable<IMediaLocation> ChildVideos(IFolderMediaLocation location)
        {
            if (location.ContainsChild(FolderResolver.IGNORE_FOLDER)) yield break;

            foreach (var child in location.Children) {
                if (child.IsVideo()) {
                    yield return child;
                }
                var folder = child as IFolderMediaLocation;
                if (folder != null) {
                    foreach (var grandChild in ChildVideos(folder)) {
                        yield return grandChild;
                    }
                }
            }
        }
Пример #4
0
        private IEnumerable <IMediaLocation> ChildVideos(IFolderMediaLocation location)
        {
            if (location.ContainsChild(FolderResolver.IGNORE_FOLDER))
            {
                yield break;
            }

            foreach (var child in location.Children)
            {
                if (child.IsVideo())
                {
                    yield return(child);
                }
                var folder = child as IFolderMediaLocation;
                if (folder != null)
                {
                    foreach (var grandChild in ChildVideos(folder))
                    {
                        yield return(grandChild);
                    }
                }
            }
        }