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:
parent
5c8f2518ba
commit
87c65932f0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user