Beispiel #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));
        }
Beispiel #2
0
        public Stream GetFile(string path)
        {
            if (path.StartsWith("http://"))
            {
                return(ArtworkRetriever.GetStream(path));
            }

            return(new FileStream(path, FileMode.Open, FileAccess.Read));
        }