コード例 #1
0
        public virtual void Generate()
        {
            Playlist List1;
            Playlist List2;
            Playlist List3;

            List1 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/toptracks.xml", this.TopTracks, this.TopTracksMixed, "TopTracks");
            List2 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/recentlovedtracks.xml", this.RecentLovedTracks, this.RecentLovedTracksMixed, "RecentLovedTracks");
            List3 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/weeklytrackchart.xml", this.WeeklyTrackChart, this.WeeklyTrackChartMixed, "WeeklyTrackChart");

            List1.AddRange(List2);
            List1.AddRange(List3);
            List1.Randomize();
            this.SavePlayList(List1, "Mixed");
        }