Пример #1
0
 public SongItemDownloader(MusicProviders musicProviders, string target, MergedSong song, string rate)
 {
     this.musicProviders = musicProviders;
     this.target         = target;
     this.song           = song;
     this.rate           = rate;
 }
Пример #2
0
        public IActionResult Search(string keyword)
        {
            MusicProviders    provider = MusicProviders.Instance;
            List <MergedSong> list     = provider.SearchSongs(keyword, 1, 20);

            foreach (var item in list)
            {
                foreach (var item2 in item.items)
                {
                    item2.url = provider.getDownloadUrl(item2);
                }
            }
            return(View(list));
        }
Пример #3
0
 public SongDownloader(MusicProviders musicProviders, string target)
 {
     this.musicProviders = musicProviders;
     this.target         = target;
 }