| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | #pragma warning disable CA1034, CS1591, CA1002, SA1028, SA1300 |
| | | 4 | | |
| | | 5 | | using System; |
| | | 6 | | using System.Collections.Generic; |
| | | 7 | | using System.Globalization; |
| | | 8 | | using System.IO; |
| | | 9 | | using System.Linq; |
| | | 10 | | using System.Net.Http; |
| | | 11 | | using System.Net.Http.Json; |
| | | 12 | | using System.Text.Json; |
| | | 13 | | using System.Threading; |
| | | 14 | | using System.Threading.Tasks; |
| | | 15 | | using Jellyfin.Extensions.Json; |
| | | 16 | | using MediaBrowser.Common.Configuration; |
| | | 17 | | using MediaBrowser.Common.Extensions; |
| | | 18 | | using MediaBrowser.Common.Net; |
| | | 19 | | using MediaBrowser.Controller.Configuration; |
| | | 20 | | using MediaBrowser.Controller.Entities.Audio; |
| | | 21 | | using MediaBrowser.Controller.Providers; |
| | | 22 | | using MediaBrowser.Model.Entities; |
| | | 23 | | using MediaBrowser.Model.IO; |
| | | 24 | | using MediaBrowser.Model.Providers; |
| | | 25 | | using MediaBrowser.Providers.Manager; |
| | | 26 | | using MediaBrowser.Providers.Music; |
| | | 27 | | |
| | | 28 | | namespace MediaBrowser.Providers.Plugins.AudioDb |
| | | 29 | | { |
| | | 30 | | public class AudioDbArtistProvider : IRemoteMetadataProvider<MusicArtist, ArtistInfo>, IHasOrder |
| | | 31 | | { |
| | | 32 | | private const string ApiKey = "195003"; |
| | | 33 | | public const string BaseUrl = "https://www.theaudiodb.com/api/v1/json/" + ApiKey; |
| | | 34 | | |
| | | 35 | | private readonly IServerConfigurationManager _config; |
| | | 36 | | private readonly IFileSystem _fileSystem; |
| | | 37 | | private readonly IHttpClientFactory _httpClientFactory; |
| | 27 | 38 | | private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options; |
| | | 39 | | |
| | | 40 | | public AudioDbArtistProvider(IServerConfigurationManager config, IFileSystem fileSystem, IHttpClientFactory http |
| | | 41 | | { |
| | 27 | 42 | | _config = config; |
| | 27 | 43 | | _fileSystem = fileSystem; |
| | 27 | 44 | | _httpClientFactory = httpClientFactory; |
| | 27 | 45 | | Current = this; |
| | 27 | 46 | | } |
| | | 47 | | |
| | | 48 | | public static AudioDbArtistProvider Current { get; private set; } |
| | | 49 | | |
| | | 50 | | /// <inheritdoc /> |
| | 0 | 51 | | public string Name => "TheAudioDB"; |
| | | 52 | | |
| | | 53 | | /// <inheritdoc /> |
| | | 54 | | // After musicbrainz |
| | 0 | 55 | | public int Order => 1; |
| | | 56 | | |
| | | 57 | | /// <inheritdoc /> |
| | | 58 | | public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(ArtistInfo searchInfo, CancellationToken can |
| | | 59 | | { |
| | | 60 | | // Prefer a known TheAudioDB artist id. |
| | 0 | 61 | | var audioDbId = searchInfo.GetProviderId(MetadataProvider.AudioDbArtist); |
| | 0 | 62 | | if (!string.IsNullOrWhiteSpace(audioDbId)) |
| | | 63 | | { |
| | 0 | 64 | | var artists = await FetchArtists(BaseUrl + "/artist.php?i=" + audioDbId, cancellationToken).ConfigureAwa |
| | 0 | 65 | | return artists.Select(ToRemoteSearchResult); |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | // Fall back to the MusicBrainz artist id, reusing the on-disk cache also used by GetMetadata. |
| | 0 | 69 | | var musicBrainzId = searchInfo.GetMusicBrainzArtistId(); |
| | 0 | 70 | | if (!string.IsNullOrWhiteSpace(musicBrainzId)) |
| | | 71 | | { |
| | 0 | 72 | | await EnsureArtistInfo(musicBrainzId, cancellationToken).ConfigureAwait(false); |
| | | 73 | | |
| | 0 | 74 | | var path = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId); |
| | | 75 | | |
| | 0 | 76 | | FileStream jsonStream = AsyncFile.OpenRead(path); |
| | 0 | 77 | | await using (jsonStream.ConfigureAwait(false)) |
| | | 78 | | { |
| | 0 | 79 | | var obj = await JsonSerializer.DeserializeAsync<RootObject>(jsonStream, _jsonOptions, cancellationTo |
| | | 80 | | |
| | 0 | 81 | | if (obj is not null && obj.artists is not null) |
| | | 82 | | { |
| | 0 | 83 | | return obj.artists.Select(ToRemoteSearchResult); |
| | | 84 | | } |
| | | 85 | | } |
| | | 86 | | |
| | 0 | 87 | | return []; |
| | | 88 | | } |
| | | 89 | | |
| | | 90 | | // Finally, search by name. |
| | 0 | 91 | | if (!string.IsNullOrWhiteSpace(searchInfo.Name)) |
| | | 92 | | { |
| | 0 | 93 | | var artists = await FetchArtists(BaseUrl + "/search.php?s=" + Uri.EscapeDataString(searchInfo.Name), can |
| | 0 | 94 | | return artists.Select(ToRemoteSearchResult); |
| | | 95 | | } |
| | | 96 | | |
| | 0 | 97 | | return []; |
| | 0 | 98 | | } |
| | | 99 | | |
| | | 100 | | private async Task<List<Artist>> FetchArtists(string url, CancellationToken cancellationToken) |
| | | 101 | | { |
| | 0 | 102 | | using var response = await _httpClientFactory.CreateClient(NamedClient.Default).GetAsync(url, cancellationTo |
| | 0 | 103 | | response.EnsureSuccessStatusCode(); |
| | | 104 | | |
| | 0 | 105 | | var obj = await response.Content.ReadFromJsonAsync<RootObject>(_jsonOptions, cancellationToken).ConfigureAwa |
| | | 106 | | |
| | 0 | 107 | | return obj?.artists ?? []; |
| | 0 | 108 | | } |
| | | 109 | | |
| | | 110 | | private RemoteSearchResult ToRemoteSearchResult(Artist artist) |
| | | 111 | | { |
| | 0 | 112 | | var result = new RemoteSearchResult |
| | 0 | 113 | | { |
| | 0 | 114 | | Name = artist.strArtist, |
| | 0 | 115 | | ImageUrl = artist.strArtistThumb, |
| | 0 | 116 | | SearchProviderName = Name, |
| | 0 | 117 | | Overview = (artist.strBiographyEN ?? string.Empty).StripHtml() |
| | 0 | 118 | | }; |
| | | 119 | | |
| | 0 | 120 | | if (!string.IsNullOrEmpty(artist.idArtist)) |
| | | 121 | | { |
| | 0 | 122 | | result.SetProviderId(MetadataProvider.AudioDbArtist, artist.idArtist); |
| | | 123 | | } |
| | | 124 | | |
| | 0 | 125 | | if (!string.IsNullOrEmpty(artist.strMusicBrainzID)) |
| | | 126 | | { |
| | 0 | 127 | | result.SetProviderId(MetadataProvider.MusicBrainzArtist, artist.strMusicBrainzID); |
| | | 128 | | } |
| | | 129 | | |
| | 0 | 130 | | if (int.TryParse(artist.intFormedYear, NumberStyles.Integer, CultureInfo.InvariantCulture, out var formedYea |
| | | 131 | | { |
| | 0 | 132 | | result.ProductionYear = formedYear; |
| | | 133 | | } |
| | | 134 | | |
| | 0 | 135 | | return result; |
| | | 136 | | } |
| | | 137 | | |
| | | 138 | | /// <inheritdoc /> |
| | | 139 | | public async Task<MetadataResult<MusicArtist>> GetMetadata(ArtistInfo info, CancellationToken cancellationToken) |
| | | 140 | | { |
| | 0 | 141 | | var result = new MetadataResult<MusicArtist>(); |
| | | 142 | | |
| | 0 | 143 | | var artist = await GetArtist( |
| | 0 | 144 | | info.GetMusicBrainzArtistId(), |
| | 0 | 145 | | info.GetProviderId(MetadataProvider.AudioDbArtist), |
| | 0 | 146 | | cancellationToken).ConfigureAwait(false); |
| | | 147 | | |
| | 0 | 148 | | if (artist is not null) |
| | | 149 | | { |
| | 0 | 150 | | result.Item = new MusicArtist(); |
| | 0 | 151 | | result.HasMetadata = true; |
| | 0 | 152 | | ProcessResult(result, artist, info.MetadataLanguage); |
| | | 153 | | } |
| | | 154 | | |
| | 0 | 155 | | return result; |
| | 0 | 156 | | } |
| | | 157 | | |
| | | 158 | | /// <summary> |
| | | 159 | | /// Resolves the cached AudioDB artist, preferring the MusicBrainz id and falling back to the AudioDB id. |
| | | 160 | | /// </summary> |
| | | 161 | | /// <param name="musicBrainzId">The MusicBrainz artist id, if known.</param> |
| | | 162 | | /// <param name="audioDbId">The TheAudioDB artist id, if known.</param> |
| | | 163 | | /// <param name="cancellationToken">The cancellation token.</param> |
| | | 164 | | /// <returns>The matching artist, or <c>null</c> if none could be resolved.</returns> |
| | | 165 | | internal async Task<Artist> GetArtist(string musicBrainzId, string audioDbId, CancellationToken cancellationToke |
| | | 166 | | { |
| | | 167 | | string path; |
| | 0 | 168 | | if (!string.IsNullOrWhiteSpace(musicBrainzId)) |
| | | 169 | | { |
| | 0 | 170 | | await EnsureArtistInfo(musicBrainzId, cancellationToken).ConfigureAwait(false); |
| | 0 | 171 | | path = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId); |
| | | 172 | | } |
| | 0 | 173 | | else if (!string.IsNullOrWhiteSpace(audioDbId)) |
| | | 174 | | { |
| | 0 | 175 | | await EnsureArtistInfoByAudioDbId(audioDbId, cancellationToken).ConfigureAwait(false); |
| | 0 | 176 | | path = GetArtistInfoPath(_config.ApplicationPaths, audioDbId); |
| | | 177 | | } |
| | | 178 | | else |
| | | 179 | | { |
| | 0 | 180 | | return null; |
| | | 181 | | } |
| | | 182 | | |
| | 0 | 183 | | FileStream jsonStream = AsyncFile.OpenRead(path); |
| | 0 | 184 | | await using (jsonStream.ConfigureAwait(false)) |
| | | 185 | | { |
| | 0 | 186 | | var obj = await JsonSerializer.DeserializeAsync<RootObject>(jsonStream, _jsonOptions, cancellationToken) |
| | | 187 | | |
| | 0 | 188 | | if (obj is not null && obj.artists is not null && obj.artists.Count > 0) |
| | | 189 | | { |
| | 0 | 190 | | return obj.artists[0]; |
| | | 191 | | } |
| | | 192 | | } |
| | | 193 | | |
| | 0 | 194 | | return null; |
| | 0 | 195 | | } |
| | | 196 | | |
| | | 197 | | private void ProcessResult(MetadataResult<MusicArtist> metadataResult, Artist result, string preferredLanguage) |
| | | 198 | | { |
| | 0 | 199 | | var item = metadataResult.Item; |
| | | 200 | | |
| | 0 | 201 | | if (!string.IsNullOrWhiteSpace(result.strWebsite)) |
| | | 202 | | { |
| | 0 | 203 | | item.HomePageUrl = result.strWebsite; |
| | | 204 | | } |
| | | 205 | | |
| | 0 | 206 | | var genres = new List<string>(); |
| | 0 | 207 | | if (!string.IsNullOrWhiteSpace(result.strGenre)) |
| | | 208 | | { |
| | 0 | 209 | | genres.Add(result.strGenre); |
| | | 210 | | } |
| | | 211 | | |
| | 0 | 212 | | if (!string.IsNullOrWhiteSpace(result.strSubGenre)) |
| | | 213 | | { |
| | 0 | 214 | | genres.Add(result.strSubGenre); |
| | | 215 | | } |
| | | 216 | | |
| | 0 | 217 | | if (genres.Count > 0) |
| | | 218 | | { |
| | 0 | 219 | | item.Genres = genres.ToArray(); |
| | | 220 | | } |
| | | 221 | | |
| | 0 | 222 | | if (int.TryParse(result.intFormedYear, NumberStyles.Integer, CultureInfo.InvariantCulture, out var formedYea |
| | | 223 | | { |
| | 0 | 224 | | item.ProductionYear = formedYear; |
| | | 225 | | } |
| | | 226 | | |
| | 0 | 227 | | if (!string.IsNullOrWhiteSpace(result.strCountry)) |
| | | 228 | | { |
| | 0 | 229 | | item.ProductionLocations = new[] { result.strCountry }; |
| | | 230 | | } |
| | | 231 | | |
| | 0 | 232 | | item.SetProviderId(MetadataProvider.AudioDbArtist, result.idArtist); |
| | 0 | 233 | | item.SetProviderId(MetadataProvider.MusicBrainzArtist, result.strMusicBrainzID); |
| | | 234 | | |
| | 0 | 235 | | var language = MetadataLanguageUtils.GetLanguageSubtag(preferredLanguage); |
| | 0 | 236 | | var overview = GetBiography(result, language); |
| | | 237 | | |
| | 0 | 238 | | if (string.IsNullOrWhiteSpace(overview)) |
| | | 239 | | { |
| | 0 | 240 | | overview = string.IsNullOrWhiteSpace(result.strBiographyEN) |
| | 0 | 241 | | ? result.strBiography |
| | 0 | 242 | | : result.strBiographyEN; |
| | | 243 | | |
| | | 244 | | // The biography is not in the requested language, mark it as English so it does not |
| | | 245 | | // block a provider further down the list that can serve the requested language |
| | 0 | 246 | | metadataResult.ResultLanguage = "en"; |
| | | 247 | | } |
| | | 248 | | else |
| | | 249 | | { |
| | 0 | 250 | | metadataResult.ResultLanguage = language; |
| | | 251 | | } |
| | | 252 | | |
| | 0 | 253 | | item.Overview = (overview ?? string.Empty).StripHtml(); |
| | 0 | 254 | | } |
| | | 255 | | |
| | | 256 | | private static string GetBiography(Artist result, string language) |
| | 0 | 257 | | => language switch |
| | 0 | 258 | | { |
| | 0 | 259 | | "de" => result.strBiographyDE, |
| | 0 | 260 | | "en" => result.strBiographyEN, |
| | 0 | 261 | | "es" => result.strBiographyES, |
| | 0 | 262 | | "fr" => result.strBiographyFR, |
| | 0 | 263 | | "he" => result.strBiographyIL, |
| | 0 | 264 | | "hu" => result.strBiographyHU, |
| | 0 | 265 | | "it" => result.strBiographyIT, |
| | 0 | 266 | | "ja" => result.strBiographyJP, |
| | 0 | 267 | | "nl" => result.strBiographyNL, |
| | 0 | 268 | | "no" or "nb" or "nn" => result.strBiographyNO, |
| | 0 | 269 | | "pl" => result.strBiographyPL, |
| | 0 | 270 | | "pt" => result.strBiographyPT, |
| | 0 | 271 | | "ru" => result.strBiographyRU, |
| | 0 | 272 | | "sv" => result.strBiographySE, |
| | 0 | 273 | | "zh" => result.strBiographyCN, |
| | 0 | 274 | | _ => null |
| | 0 | 275 | | }; |
| | | 276 | | |
| | | 277 | | internal async Task EnsureArtistInfo(string musicBrainzId, CancellationToken cancellationToken) |
| | | 278 | | { |
| | 0 | 279 | | var xmlPath = GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId); |
| | | 280 | | |
| | 0 | 281 | | var fileInfo = _fileSystem.GetFileSystemInfo(xmlPath); |
| | | 282 | | |
| | 0 | 283 | | if (fileInfo.Exists |
| | 0 | 284 | | && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(fileInfo)).TotalDays <= 2) |
| | | 285 | | { |
| | 0 | 286 | | return; |
| | | 287 | | } |
| | | 288 | | |
| | 0 | 289 | | await DownloadArtistInfo(musicBrainzId, cancellationToken).ConfigureAwait(false); |
| | 0 | 290 | | } |
| | | 291 | | |
| | | 292 | | internal async Task DownloadArtistInfo(string musicBrainzId, CancellationToken cancellationToken) |
| | | 293 | | { |
| | 0 | 294 | | var url = BaseUrl + "/artist-mb.php?i=" + musicBrainzId; |
| | 0 | 295 | | await DownloadArtistInfo(url, GetArtistInfoPath(_config.ApplicationPaths, musicBrainzId), cancellationToken) |
| | 0 | 296 | | } |
| | | 297 | | |
| | | 298 | | internal async Task EnsureArtistInfoByAudioDbId(string audioDbId, CancellationToken cancellationToken) |
| | | 299 | | { |
| | 0 | 300 | | var xmlPath = GetArtistInfoPath(_config.ApplicationPaths, audioDbId); |
| | | 301 | | |
| | 0 | 302 | | var fileInfo = _fileSystem.GetFileSystemInfo(xmlPath); |
| | | 303 | | |
| | 0 | 304 | | if (fileInfo.Exists |
| | 0 | 305 | | && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(fileInfo)).TotalDays <= 2) |
| | | 306 | | { |
| | 0 | 307 | | return; |
| | | 308 | | } |
| | | 309 | | |
| | 0 | 310 | | var url = BaseUrl + "/artist.php?i=" + audioDbId; |
| | 0 | 311 | | await DownloadArtistInfo(url, xmlPath, cancellationToken).ConfigureAwait(false); |
| | 0 | 312 | | } |
| | | 313 | | |
| | | 314 | | private async Task DownloadArtistInfo(string url, string path, CancellationToken cancellationToken) |
| | | 315 | | { |
| | 0 | 316 | | cancellationToken.ThrowIfCancellationRequested(); |
| | | 317 | | |
| | 0 | 318 | | using var response = await _httpClientFactory.CreateClient(NamedClient.Default).GetAsync(url, cancellationTo |
| | 0 | 319 | | response.EnsureSuccessStatusCode(); |
| | 0 | 320 | | Directory.CreateDirectory(Path.GetDirectoryName(path)); |
| | | 321 | | |
| | 0 | 322 | | var fileStreamOptions = AsyncFile.WriteOptions; |
| | 0 | 323 | | fileStreamOptions.Mode = FileMode.Create; |
| | 0 | 324 | | var xmlFileStream = new FileStream(path, fileStreamOptions); |
| | 0 | 325 | | await using (xmlFileStream.ConfigureAwait(false)) |
| | | 326 | | { |
| | 0 | 327 | | await response.Content.CopyToAsync(xmlFileStream, cancellationToken).ConfigureAwait(false); |
| | | 328 | | } |
| | 0 | 329 | | } |
| | | 330 | | |
| | | 331 | | /// <summary> |
| | | 332 | | /// Gets the artist data path. |
| | | 333 | | /// </summary> |
| | | 334 | | /// <param name="appPaths">The application paths.</param> |
| | | 335 | | /// <param name="musicBrainzArtistId">The music brainz artist identifier.</param> |
| | | 336 | | /// <returns>System.String.</returns> |
| | | 337 | | private static string GetArtistDataPath(IApplicationPaths appPaths, string musicBrainzArtistId) |
| | 0 | 338 | | => Path.Combine(GetArtistDataPath(appPaths), musicBrainzArtistId); |
| | | 339 | | |
| | | 340 | | /// <summary> |
| | | 341 | | /// Gets the artist data path. |
| | | 342 | | /// </summary> |
| | | 343 | | /// <param name="appPaths">The application paths.</param> |
| | | 344 | | /// <returns>System.String.</returns> |
| | | 345 | | private static string GetArtistDataPath(IApplicationPaths appPaths) |
| | 0 | 346 | | => Path.Combine(appPaths.CachePath, "audiodb-artist"); |
| | | 347 | | |
| | | 348 | | internal static string GetArtistInfoPath(IApplicationPaths appPaths, string musicBrainzArtistId) |
| | | 349 | | { |
| | 0 | 350 | | var dataPath = GetArtistDataPath(appPaths, musicBrainzArtistId); |
| | | 351 | | |
| | 0 | 352 | | return Path.Combine(dataPath, "artist.json"); |
| | | 353 | | } |
| | | 354 | | |
| | | 355 | | /// <inheritdoc /> |
| | | 356 | | public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken) |
| | | 357 | | { |
| | 0 | 358 | | throw new NotImplementedException(); |
| | | 359 | | } |
| | | 360 | | |
| | | 361 | | public class Artist |
| | | 362 | | { |
| | | 363 | | public string idArtist { get; set; } |
| | | 364 | | |
| | | 365 | | public string strArtist { get; set; } |
| | | 366 | | |
| | | 367 | | public string strArtistAlternate { get; set; } |
| | | 368 | | |
| | | 369 | | public object idLabel { get; set; } |
| | | 370 | | |
| | | 371 | | public string intFormedYear { get; set; } |
| | | 372 | | |
| | | 373 | | public string intBornYear { get; set; } |
| | | 374 | | |
| | | 375 | | public object intDiedYear { get; set; } |
| | | 376 | | |
| | | 377 | | public object strDisbanded { get; set; } |
| | | 378 | | |
| | | 379 | | public string strGenre { get; set; } |
| | | 380 | | |
| | | 381 | | public string strSubGenre { get; set; } |
| | | 382 | | |
| | | 383 | | public string strWebsite { get; set; } |
| | | 384 | | |
| | | 385 | | public string strFacebook { get; set; } |
| | | 386 | | |
| | | 387 | | public string strTwitter { get; set; } |
| | | 388 | | |
| | | 389 | | public string strBiography { get; set; } |
| | | 390 | | |
| | | 391 | | public string strBiographyEN { get; set; } |
| | | 392 | | |
| | | 393 | | public string strBiographyDE { get; set; } |
| | | 394 | | |
| | | 395 | | public string strBiographyFR { get; set; } |
| | | 396 | | |
| | | 397 | | public string strBiographyCN { get; set; } |
| | | 398 | | |
| | | 399 | | public string strBiographyIT { get; set; } |
| | | 400 | | |
| | | 401 | | public string strBiographyJP { get; set; } |
| | | 402 | | |
| | | 403 | | public string strBiographyRU { get; set; } |
| | | 404 | | |
| | | 405 | | public string strBiographyES { get; set; } |
| | | 406 | | |
| | | 407 | | public string strBiographyPT { get; set; } |
| | | 408 | | |
| | | 409 | | public string strBiographySE { get; set; } |
| | | 410 | | |
| | | 411 | | public string strBiographyNL { get; set; } |
| | | 412 | | |
| | | 413 | | public string strBiographyHU { get; set; } |
| | | 414 | | |
| | | 415 | | public string strBiographyNO { get; set; } |
| | | 416 | | |
| | | 417 | | public string strBiographyIL { get; set; } |
| | | 418 | | |
| | | 419 | | public string strBiographyPL { get; set; } |
| | | 420 | | |
| | | 421 | | public string strGender { get; set; } |
| | | 422 | | |
| | | 423 | | public string intMembers { get; set; } |
| | | 424 | | |
| | | 425 | | public string strCountry { get; set; } |
| | | 426 | | |
| | | 427 | | public string strCountryCode { get; set; } |
| | | 428 | | |
| | | 429 | | public string strArtistThumb { get; set; } |
| | | 430 | | |
| | | 431 | | public string strArtistLogo { get; set; } |
| | | 432 | | |
| | | 433 | | public string strArtistFanart { get; set; } |
| | | 434 | | |
| | | 435 | | public string strArtistFanart2 { get; set; } |
| | | 436 | | |
| | | 437 | | public string strArtistFanart3 { get; set; } |
| | | 438 | | |
| | | 439 | | public string strArtistBanner { get; set; } |
| | | 440 | | |
| | | 441 | | public string strMusicBrainzID { get; set; } |
| | | 442 | | |
| | | 443 | | public object strLastFMChart { get; set; } |
| | | 444 | | |
| | | 445 | | public string strLocked { get; set; } |
| | | 446 | | } |
| | | 447 | | |
| | | 448 | | #pragma warning disable CA2227 |
| | | 449 | | public class RootObject |
| | | 450 | | { |
| | | 451 | | public List<Artist> artists { get; set; } |
| | | 452 | | } |
| | | 453 | | } |
| | | 454 | | } |