Beispiel #1
0
        public static void Main()
        {
            Console.WriteLine("downloading {0} zune album webpages...", _webpages.Length);

            foreach (var url in _webpages)
            {
                var scraper = new AlbumDocumentReader(url);
                var result  = scraper.Read();

                Console.WriteLine("ZuneAlbumMediaID: {0}", result.First().AlbumMediaID);
                Console.WriteLine("Album Artist: {0}", result.First().MetaData.AlbumArtist);
                Console.WriteLine("Title: {0}", result.First().MetaData.AlbumName);
                Console.WriteLine("Release Year: {0}", result.First().MetaData.Year);
                Console.WriteLine("Artwork url: {0}", result.First().ArtworkUrl);

                foreach (var track in result)
                {
                    if (track.HasAllZuneIds == false)
                    {
                        Console.WriteLine("bad song :(");
                    }
                }

                Console.WriteLine("");
            }

            Console.WriteLine("finished...");
            Console.ReadLine();
        }
        public static void Main()
        {
            Console.WriteLine("downloading {0} zune album webpages...", _webpages.Length);

            foreach (var url in _webpages)
            {
                var scraper = new AlbumDocumentReader(url);
                var result = scraper.Read();

                Console.WriteLine("ZuneAlbumMediaID: {0}", result.First().AlbumMediaID);
                Console.WriteLine("Album Artist: {0}", result.First().MetaData.AlbumArtist);
                Console.WriteLine("Title: {0}", result.First().MetaData.AlbumName);
                Console.WriteLine("Release Year: {0}", result.First().MetaData.Year);
                Console.WriteLine("Artwork url: {0}", result.First().ArtworkUrl);

                foreach (var track in result)
                    if (track.HasAllZuneIds == false)
                        Console.WriteLine("bad song :(");

                Console.WriteLine("");
            }

            Console.WriteLine("finished...");
            Console.ReadLine();
        }