From 3111a8a1bcc60be159eb41ae9646bd547d075963 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 9 Feb 2014 12:44:25 -0500 Subject: [PATCH] changed air days to checkboxes --- .../WebSocket/LogFileWebSocketListener.cs | 6 +++--- MediaBrowser.Providers/Music/LastfmHelper.cs | 13 +++++++++++++ MediaBrowser.Providers/Savers/XmlSaverHelpers.cs | 4 +++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Api/WebSocket/LogFileWebSocketListener.cs b/MediaBrowser.Api/WebSocket/LogFileWebSocketListener.cs index 4193cc797..7fbea2f40 100644 --- a/MediaBrowser.Api/WebSocket/LogFileWebSocketListener.cs +++ b/MediaBrowser.Api/WebSocket/LogFileWebSocketListener.cs @@ -111,9 +111,9 @@ namespace MediaBrowser.Api.WebSocket { var line = await reader.ReadLineAsync().ConfigureAwait(false); - if (line.IndexOf("Info", StringComparison.OrdinalIgnoreCase) != -1 || - line.IndexOf("Warn", StringComparison.OrdinalIgnoreCase) != -1 || - line.IndexOf("Error", StringComparison.OrdinalIgnoreCase) != -1) + if (line.IndexOf("Info -", StringComparison.OrdinalIgnoreCase) != -1 || + line.IndexOf("Warn -", StringComparison.OrdinalIgnoreCase) != -1 || + line.IndexOf("Error -", StringComparison.OrdinalIgnoreCase) != -1) { lines.Add(line); } diff --git a/MediaBrowser.Providers/Music/LastfmHelper.cs b/MediaBrowser.Providers/Music/LastfmHelper.cs index 0c67e7ea7..7c83cec6b 100644 --- a/MediaBrowser.Providers/Music/LastfmHelper.cs +++ b/MediaBrowser.Providers/Music/LastfmHelper.cs @@ -39,6 +39,19 @@ namespace MediaBrowser.Providers.Music public static void SaveImageInfo(IApplicationPaths appPaths, ILogger logger, string musicBrainzId, string url, string size) { + if (appPaths == null) + { + throw new ArgumentNullException("appPaths"); + } + if (string.IsNullOrEmpty(musicBrainzId)) + { + throw new ArgumentNullException("musicBrainzId"); + } + if (string.IsNullOrEmpty(url)) + { + throw new ArgumentNullException("url"); + } + var cachePath = Path.Combine(appPaths.CachePath, "lastfm", musicBrainzId, "image.txt"); try diff --git a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs index 821a6de8f..461ff2a65 100644 --- a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs +++ b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs @@ -47,7 +47,9 @@ namespace MediaBrowser.Providers.Savers "Format3D", "Metascore", "MPAARating", - "MusicbrainzId", + "MusicBrainzArtistId", + "MusicBrainzAlbumArtistId", + "MusicBrainzAlbumId", "MusicBrainzReleaseGroupId", "Overview", "Persons",