mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-01 11:52:52 +01:00
remove trailing whitespace
This commit is contained in:
@@ -42,7 +42,7 @@ namespace MediaBrowser.Providers.BoxSets
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Backdrop
|
||||
};
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace MediaBrowser.Providers.BoxSets
|
||||
}
|
||||
|
||||
private readonly CultureInfo _usCulture = new CultureInfo("en-US");
|
||||
|
||||
|
||||
public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(BoxSetInfo searchInfo, CancellationToken cancellationToken)
|
||||
{
|
||||
var tmdbId = searchInfo.GetProviderId(MetadataProviders.Tmdb);
|
||||
@@ -73,7 +73,7 @@ namespace MediaBrowser.Providers.BoxSets
|
||||
Name = info.name,
|
||||
|
||||
SearchProviderName = Name,
|
||||
|
||||
|
||||
ImageUrl = images.Count == 0 ? null : (tmdbImageUrl + images[0].file_path)
|
||||
};
|
||||
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace Priority_Queue
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method must be called on a node every time its priority changes while it is in the queue.
|
||||
/// This method must be called on a node every time its priority changes while it is in the queue.
|
||||
/// <b>Forgetting to call this method will result in a corrupted queue!</b>
|
||||
/// Calling this method on a node not in the queue results in undefined behavior
|
||||
/// O(log n)
|
||||
@@ -344,7 +344,7 @@ namespace Priority_Queue
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a node from the queue. The node does not need to be the head of the queue.
|
||||
/// Removes a node from the queue. The node does not need to be the head of the queue.
|
||||
/// If the node is not in the queue, the result is undefined. If unsure, check Contains() first
|
||||
/// O(log n)
|
||||
/// </summary>
|
||||
|
||||
@@ -36,12 +36,12 @@ namespace Priority_Queue
|
||||
bool Contains(TItem node);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a node from the queue. The node does not need to be the head of the queue.
|
||||
/// Removes a node from the queue. The node does not need to be the head of the queue.
|
||||
/// </summary>
|
||||
void Remove(TItem node);
|
||||
|
||||
/// <summary>
|
||||
/// Call this method to change the priority of a node.
|
||||
/// Call this method to change the priority of a node.
|
||||
/// </summary>
|
||||
void UpdatePriority(TItem node, TPriority priority);
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ namespace MediaBrowser.Providers.Manager
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -167,9 +167,9 @@ namespace Priority_Queue
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes an item from the queue. The item does not need to be the head of the queue.
|
||||
/// Removes an item from the queue. The item does not need to be the head of the queue.
|
||||
/// If the item is not in the queue, an exception is thrown. If unsure, check Contains() first.
|
||||
/// If multiple copies of the item are enqueued, only the first one is removed.
|
||||
/// If multiple copies of the item are enqueued, only the first one is removed.
|
||||
/// O(n)
|
||||
/// </summary>
|
||||
public void Remove(TItem item)
|
||||
|
||||
@@ -210,8 +210,8 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
|
||||
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
|
||||
{
|
||||
return new[] {
|
||||
|
||||
return new[] {
|
||||
|
||||
// Every so often
|
||||
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks}
|
||||
};
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
var tmdbId = itemId.GetProviderId(MetadataProviders.Tmdb);
|
||||
var imdbId = itemId.GetProviderId(MetadataProviders.Imdb);
|
||||
|
||||
// Don't search for music video id's because it is very easy to misidentify.
|
||||
// Don't search for music video id's because it is very easy to misidentify.
|
||||
if (string.IsNullOrEmpty(tmdbId) && string.IsNullOrEmpty(imdbId) && typeof(T) != typeof(MusicVideo))
|
||||
{
|
||||
var searchResults = await new MovieDbSearch(_logger, _jsonSerializer, _libraryManager).GetMovieSearchResults(itemId, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Backdrop
|
||||
};
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace MediaBrowser.Providers.Music
|
||||
private ItemUpdateType SetAlbumArtistFromSongs(MusicAlbum item, IEnumerable<Audio> songs)
|
||||
{
|
||||
var updateType = ItemUpdateType.None;
|
||||
|
||||
|
||||
var artists = songs
|
||||
.SelectMany(i => i.AlbumArtists)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Disc
|
||||
};
|
||||
}
|
||||
@@ -81,7 +81,7 @@ namespace MediaBrowser.Providers.Music
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||
{
|
||||
return _httpClient.GetResponse(new HttpRequestOptions
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Logo,
|
||||
ImageType.Banner,
|
||||
ImageType.Backdrop
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
info.ArtistProviderIds.TryGetValue(MetadataProviders.MusicBrainzArtist.ToString(), out id);
|
||||
}
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(id))
|
||||
{
|
||||
return info.SongInfos.Select(i => i.GetProviderId(MetadataProviders.MusicBrainzAlbumArtist))
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Disc
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Logo,
|
||||
ImageType.Art,
|
||||
ImageType.Banner,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MediaBrowser.Providers")]
|
||||
@@ -13,8 +13,8 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
@@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
@@ -42,7 +42,7 @@ namespace MediaBrowser.Providers.Studios
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Thumb
|
||||
};
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Backdrop,
|
||||
ImageType.Backdrop,
|
||||
ImageType.Thumb,
|
||||
ImageType.Banner,
|
||||
ImageType.Primary
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Thumb,
|
||||
ImageType.Art,
|
||||
ImageType.Logo,
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
public class MovieDbEpisodeImageProvider :
|
||||
MovieDbProviderBase,
|
||||
IRemoteImageProvider,
|
||||
IRemoteImageProvider,
|
||||
IHasOrder
|
||||
{
|
||||
public MovieDbEpisodeImageProvider(IHttpClient httpClient, IServerConfigurationManager configurationManager, IJsonSerializer jsonSerializer, IFileSystem fileSystem, ILocalizationManager localization, ILoggerFactory loggerFactory)
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
foreach (var video in response.videos.results)
|
||||
{
|
||||
if (video.type.Equals("trailer", System.StringComparison.OrdinalIgnoreCase)
|
||||
if (video.type.Equals("trailer", System.StringComparison.OrdinalIgnoreCase)
|
||||
|| video.type.Equals("clip", System.StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
if (video.site.Equals("youtube", System.StringComparison.OrdinalIgnoreCase))
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Backdrop
|
||||
};
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Banner,
|
||||
ImageType.Backdrop
|
||||
};
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
return new List<ImageType>
|
||||
{
|
||||
ImageType.Primary,
|
||||
ImageType.Primary,
|
||||
ImageType.Banner,
|
||||
ImageType.Backdrop
|
||||
};
|
||||
|
||||
@@ -787,7 +787,7 @@ namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
if ((int)c >= 0x2B0 && (int)c <= 0x0333)
|
||||
{
|
||||
// skip char modifier and diacritics
|
||||
// skip char modifier and diacritics
|
||||
}
|
||||
else if (remove.IndexOf(c) > -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user