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 WebFileInfo GetFileInfo(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetFileInfo(path));
            }

            return(new WebFileInfo(new FileInfo(PathUtil.StripFileProtocolPrefix(path))));
        }