diff options
Diffstat (limited to 'MediaBrowser.Providers/Music/LastfmHelper.cs')
| -rw-r--r-- | MediaBrowser.Providers/Music/LastfmHelper.cs | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
