Commit 8bcf85b9 authored by Thomas Nigro's avatar Thomas Nigro

When someone managed to get album cover, send a mail

parent ae1555f9
......@@ -43,6 +43,13 @@ namespace VLC_WINRT_APP.Helpers
os += deviceInfo.SystemManufacturer;
os += " ";
os += deviceInfo.SystemProductName;
if (
ApplicationSettingsHelper.ReadSettingsValue("ExceptionLog")
.ToString()
.Contains("GetAlbumUrl : AlbumURLWorkedViaVLC"))
{
os += " ARTCOVER";
}
#endif
#if WINDOWS_PHONE_APP
var objEmail = new EmailMessage();
......@@ -124,6 +131,10 @@ namespace VLC_WINRT_APP.Helpers
ApplicationSettingsHelper.SaveSettingsValue("ExceptionLog", stringExceptionBuilder.ToString());
}
public static void CreateExceptionalMsg(string value)
{
ApplicationSettingsHelper.SaveSettingsValue("ExceptionLog", value);
}
public static void CreateMemorizedException(string method, Exception exception)
{
StringBuilder stringExceptionBuilder = new StringBuilder("Exception Log VLC for Modern Windows");
......
......@@ -233,7 +233,14 @@ namespace VLC_WINRT_APP.Services.RunTime
{
var media = new Media(Instance, "file:///" + filePath);
media.parse();
return media.isParsed() ? media.meta(MediaMeta.ArtworkURL) : null;
if (!media.isParsed()) return "";
var url = media.meta(MediaMeta.ArtworkURL);
if (!string.IsNullOrEmpty(url))
{
ExceptionHelper.CreateExceptionalMsg("GetAlbumUrl : AlbumURLWorkedViaVLC :" + url);
return url;
}
return "";
}
public Dictionary<string, object> GetMusicProperties(string filePath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment