Skip to content

Commit

Permalink
Clean TraktService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Qstick authored Dec 29, 2021
1 parent 5c8f251 commit 87c6593
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/NzbDrone.Core/Notifications/Trakt/TraktService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void AddEpisodeToCollection(TraktSettings settings, Series series, Episod
Audio = audio,
});
}

var payloadSeasons = new List<TraktSeasonResource>();
payloadSeasons.Add(new TraktSeasonResource
{
Expand All @@ -128,7 +128,7 @@ public void AddEpisodeToCollection(TraktSettings settings, Series series, Episod
Imdb = series.ImdbId ?? "",
},
Seasons = payloadSeasons,
}); ;
});

_proxy.AddToCollection(payload, settings.AccessToken);
}
Expand Down Expand Up @@ -167,7 +167,7 @@ public void RemoveEpisodeFromCollection(TraktSettings settings, Series series, E
Imdb = series.ImdbId ?? "",
},
Seasons = payloadSeasons,
}); ;
});

_proxy.RemoveFromCollection(payload, settings.AccessToken);
}
Expand All @@ -188,7 +188,7 @@ public void RemoveSeriesFromCollection(TraktSettings settings, Series series)
Tvdb = series.TvdbId,
Imdb = series.ImdbId ?? "",
},
}); ;
});

_proxy.RemoveFromCollection(payload, settings.AccessToken);
}
Expand Down Expand Up @@ -316,7 +316,7 @@ private string MapAudio(EpisodeFile episodeFile)
private string MapAudioChannels(EpisodeFile episodeFile, string audioFormat)
{
var audioChannels = episodeFile.MediaInfo != null ? MediaInfoFormatter.FormatAudioChannels(episodeFile.MediaInfo).ToString("0.0") : string.Empty;

return audioChannels;
}
}
Expand Down

0 comments on commit 87c6593

Please sign in to comment.