af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
// <copyright file="AudioDbArtistExternalUrlProvider.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Providers.Plugins.AudioDb;
|
|
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Controller.Entities.Audio;
|
|
using MediaBrowser.Controller.Providers;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
/// <summary>
|
|
/// External artist URLs for AudioDb.
|
|
/// </summary>
|
|
public class AudioDbArtistExternalUrlProvider : IExternalUrlProvider
|
|
{
|
|
/// <inheritdoc/>
|
|
public string Name => "TheAudioDb Artist";
|
|
|
|
/// <inheritdoc/>
|
|
public IEnumerable<string> GetExternalUrls(BaseItem item)
|
|
{
|
|
if (item.TryGetProviderId(MetadataProvider.AudioDbArtist, out var externalId))
|
|
{
|
|
var baseUrl = "https://www.theaudiodb.com/";
|
|
switch (item)
|
|
{
|
|
case MusicArtist:
|
|
case Person:
|
|
yield return baseUrl + $"artist/{externalId}";
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|