Don't use AppendFormat

This commit is contained in:
cvium 2021-11-20 08:24:52 +01:00
parent 96ea865681
commit d8c3b8e7f8

View File

@ -95,12 +95,12 @@ namespace MediaBrowser.Providers.Plugins.Omdb
episodeSearchInfo.SeriesProviderIds.TryGetValue(MetadataProvider.Imdb.ToString(), out imdbId);
if (searchInfo.IndexNumber.HasValue)
{
urlQuery.AppendFormat(CultureInfo.InvariantCulture, "&Episode={0}", searchInfo.IndexNumber);
urlQuery.Append("&Episode=").Append(searchInfo.IndexNumber.Value);
}
if (searchInfo.ParentIndexNumber.HasValue)
{
urlQuery.AppendFormat(CultureInfo.InvariantCulture, "&Season={0}", searchInfo.ParentIndexNumber);
urlQuery.Append("&Season=").Append(searchInfo.ParentIndexNumber.Value);
}
}
@ -118,8 +118,7 @@ namespace MediaBrowser.Providers.Plugins.Omdb
if (year.HasValue)
{
urlQuery.Append("&y=")
.Append(year);
urlQuery.Append("&y=").Append(year);
}
// &s means search and returns a list of results as opposed to t