aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Providers/Music/LastfmHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Providers/Music/LastfmHelper.cs')
-rw-r--r--MediaBrowser.Controller/Providers/Music/LastfmHelper.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Providers/Music/LastfmHelper.cs b/MediaBrowser.Controller/Providers/Music/LastfmHelper.cs
new file mode 100644
index 0000000000..d4559b94a1
--- /dev/null
+++ b/MediaBrowser.Controller/Providers/Music/LastfmHelper.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using MediaBrowser.Controller.Entities;
+
+namespace MediaBrowser.Controller.Providers.Music
+{
+ public static class LastfmHelper
+ {
+ public static string LocalArtistMetaFileName = "MBArtist.json";
+
+ public static void ProcessArtistData(BaseItem artist, LastfmArtist data)
+ {
+ artist.Overview = data.bio != null ? data.bio.content : null;
+ if (data.tags != null)
+ {
+ foreach (var tag in data.tags.tag)
+ {
+ artist.AddGenre(tag.name);
+ }
+
+ }
+ }
+
+ }
+}