aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-09 12:44:25 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-09 12:44:25 -0500
commit3111a8a1bcc60be159eb41ae9646bd547d075963 (patch)
tree1d29ea536171323c7509b85ad285ee307e48defa
parentaac392f4cd7da4fc40a4cf948783249365bc8e0c (diff)
changed air days to checkboxes
-rw-r--r--MediaBrowser.Api/WebSocket/LogFileWebSocketListener.cs6
-rw-r--r--MediaBrowser.Providers/Music/LastfmHelper.cs13
-rw-r--r--MediaBrowser.Providers/Savers/XmlSaverHelpers.cs4
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",