Exemplo n.º 1
0
 private void OnSubtitleDownloadFailure(object sender, SubtitleDownloadFailureEventArgs e)
 {
     CreateLogEntry(new ActivityLogEntry
     {
         Name          = string.Format(_localization.GetLocalizedString("SubtitleDownloadFailureFromForItem"), e.Provider, Notifications.Notifications.GetItemName(e.Item)),
         Type          = "SubtitleDownloadFailure",
         ItemId        = e.Item.Id.ToString("N"),
         ShortOverview = e.Exception.Message
     });
 }
Exemplo n.º 2
0
 void _subManager_SubtitleDownloadFailure(object sender, SubtitleDownloadFailureEventArgs e)
 {
     CreateLogEntry(new ActivityLogEntry
     {
         Name = string.Format(_localization.GetLocalizedString("SubtitleDownloadFailureForItem"), Notifications.Notifications.GetItemName(e.Item)),
         Type = "SubtitleDownloadFailure",
         ItemId = e.Item.Id.ToString("N"),
         ShortOverview = string.Format(_localization.GetLocalizedString("ProviderValue"), e.Provider),
         Overview = LogHelper.GetLogMessage(e.Exception).ToString()
     });
 }
Exemplo n.º 3
0
 private async void OnSubtitleDownloadFailure(object sender, SubtitleDownloadFailureEventArgs e)
 {
     await CreateLogEntry(new ActivityLog(
                              string.Format(
                                  CultureInfo.InvariantCulture,
                                  _localization.GetLocalizedString("SubtitleDownloadFailureFromForItem"),
                                  e.Provider,
                                  Notifications.NotificationEntryPoint.GetItemName(e.Item)),
                              "SubtitleDownloadFailure",
                              Guid.Empty)
     {
         ItemId        = e.Item.Id.ToString("N", CultureInfo.InvariantCulture),
         ShortOverview = e.Exception.Message
     }).ConfigureAwait(false);
 }