LastfmArtistByNameProvider.cs 1.9 KB

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