Esempio n. 1
0
 public void CreateFromJson(dynamic obj)
 {
     MusicHelper.LoadMusicInfoFromJson(this, obj);
     if (string.IsNullOrEmpty(Id))
     {
         Id = MusicHelper.Get(obj, "list_id");
     }
 }
Esempio n. 2
0
 public void CreateFromJson(dynamic obj)
 {
     MusicHelper.LoadMusicInfoFromJson(this, obj);
     ArtistId   = MusicHelper.Get(obj, "artist_id");
     ArtistName = MusicHelper.Get(obj, "artist_name");
     if (string.IsNullOrEmpty(ArtistId) && obj["songs"] != null)
     {
         ArtistId   = MusicHelper.Get(obj["songs"][0], "artist_id");
         ArtistName = MusicHelper.Get(obj["songs"][0], "artist_name");
     }
 }
Esempio n. 3
0
 public void CreateFromJson(dynamic obj)
 {
     MusicHelper.LoadMusicInfoFromJson(this, obj);
     ArtistId    = MusicHelper.Get(obj, "artist_id");
     ArtistName  = MusicHelper.Get(obj, "artist_name", "name");
     AlbumId     = MusicHelper.Get(obj, "album_id");
     AlbumName   = MusicHelper.Get(obj, "album_name", "name");
     UrlMp3      = StringHelper.EscapeUrl(MusicHelper.Get(obj, "location", "song_location", "listen_file"));
     UrlLrc      = StringHelper.EscapeUrl(MusicHelper.Get(obj, "lyric", "song_lyric"));
     Description = MusicHelper.Get(obj, "reason", "description");
     WriteId3    = true;
 }
Esempio n. 4
0
 public void CreateFromJson(dynamic obj)
 {
     MusicHelper.LoadMusicInfoFromJson(this, obj);
     Description = MusicHelper.Get(obj, "count_likes");
     if (!string.IsNullOrEmpty(Description))
     {
         Description += "位粉丝";
     }
     AlbumCount = MusicHelper.Get(obj, "albums_count", "count");
     if (!string.IsNullOrEmpty(AlbumCount))
     {
         AlbumCount += "张专辑";
     }
 }