LastfmArtistByNameProvider.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using MediaBrowser.Common.Net;
  2. using MediaBrowser.Controller.Configuration;
  3. using MediaBrowser.Controller.Entities;
  4. using MediaBrowser.Controller.Entities.Audio;
  5. using MediaBrowser.Controller.Library;
  6. using MediaBrowser.Model.Logging;
  7. using MediaBrowser.Model.Serialization;
  8. namespace MediaBrowser.Controller.Providers.Music
  9. {
  10. /// <summary>
  11. /// Class LastfmArtistByNameProvider
  12. /// </summary>
  13. public class LastfmArtistByNameProvider : LastfmArtistProvider
  14. {
  15. /// <summary>
  16. /// Initializes a new instance of the <see cref="LastfmArtistByNameProvider"/> class.
  17. /// </summary>
  18. /// <param name="jsonSerializer">The json serializer.</param>
  19. /// <param name="httpClient">The HTTP client.</param>
  20. /// <param name="logManager">The log manager.</param>
  21. /// <param name="configurationManager">The configuration manager.</param>
  22. /// <param name="providerManager">The provider manager.</param>
  23. public LastfmArtistByNameProvider(IJsonSerializer jsonSerializer, IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager, ILibraryManager libraryManager)
  24. : base(jsonSerializer, httpClient, logManager, configurationManager, providerManager, libraryManager)
  25. {
  26. }
  27. /// <summary>
  28. /// Gets a value indicating whether [save local meta].
  29. /// </summary>
  30. /// <value><c>true</c> if [save local meta]; otherwise, <c>false</c>.</value>
  31. protected override bool SaveLocalMeta
  32. {
  33. get
  34. {
  35. return true;
  36. }
  37. }
  38. /// <summary>
  39. /// Supportses the specified item.
  40. /// </summary>
  41. /// <param name="item">The item.</param>
  42. /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
  43. public override bool Supports(BaseItem item)
  44. {
  45. return item is Artist;
  46. }
  47. }
  48. }