Example #1
0
        public Stream GetFile(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetStream(path));
            }

            return(new FileStream(PathUtil.StripFileProtocolPrefix(path), FileMode.Open, FileAccess.Read));
        }
Example #2
0
        public Stream GetFile(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetStream(path));
            }

            return(new FileStream(path, FileMode.Open, FileAccess.Read));
        }
Example #3
0
        public WebFileInfo GetFileInfo(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetFileInfo(path));
            }

            return(new WebFileInfo(PathUtil.StripFileProtocolPrefix(path)));
        }
Example #4
0
        public WebFileInfo GetFileInfo(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetFileInfo(path));
            }

            return(new WebFileInfo(new FileInfo(path)));
        }