1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-24 11:43:07 +01:00

Clean TraktService.cs

This commit is contained in:
Qstick 2021-12-28 19:51:43 -06:00 committed by GitHub
parent 5c8f2518ba
commit 87c65932f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ namespace NzbDrone.Core.Notifications.Trakt
Audio = audio,
});
}
var payloadSeasons = new List<TraktSeasonResource>();
payloadSeasons.Add(new TraktSeasonResource
{
@ -128,7 +128,7 @@ namespace NzbDrone.Core.Notifications.Trakt
Imdb = series.ImdbId ?? "",
},
Seasons = payloadSeasons,
}); ;
});
_proxy.AddToCollection(payload, settings.AccessToken);
}
@ -167,7 +167,7 @@ namespace NzbDrone.Core.Notifications.Trakt
Imdb = series.ImdbId ?? "",
},
Seasons = payloadSeasons,
}); ;
});
_proxy.RemoveFromCollection(payload, settings.AccessToken);
}
@ -188,7 +188,7 @@ namespace NzbDrone.Core.Notifications.Trakt
Tvdb = series.TvdbId,
Imdb = series.ImdbId ?? "",
},
}); ;
});
_proxy.RemoveFromCollection(payload, settings.AccessToken);
}
@ -316,7 +316,7 @@ namespace NzbDrone.Core.Notifications.Trakt
private string MapAudioChannels(EpisodeFile episodeFile, string audioFormat)
{
var audioChannels = episodeFile.MediaInfo != null ? MediaInfoFormatter.FormatAudioChannels(episodeFile.MediaInfo).ToString("0.0") : string.Empty;
return audioChannels;
}
}