mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	CodingStyle: Removing trailing spaces
This commit is contained in:
		
							parent
							
								
									af285a7c6c
								
							
						
					
					
						commit
						ad0235307f
					
				@ -625,6 +625,7 @@ namespace Kyoo.Abstractions.Controllers
 | 
			
		||||
		/// <param name="where">A predicate to add arbitrary filter</param>
 | 
			
		||||
		/// <param name="sort">A sort by expression</param>
 | 
			
		||||
		/// <param name="limit">Pagination information (where to start and how many to get)</param>
 | 
			
		||||
		/// <typeparam name="T">The type of metadata to retrieve</typeparam>
 | 
			
		||||
		/// <returns>A filtered list of external ids.</returns>
 | 
			
		||||
		Task<ICollection<MetadataID>> GetMetadataID<T>([Optional] Expression<Func<MetadataID, bool>> where,
 | 
			
		||||
			Expression<Func<MetadataID, object>> sort,
 | 
			
		||||
 | 
			
		||||
@ -1,9 +1,8 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System;
 | 
			
		||||
using Kyoo.Abstractions.Controllers;
 | 
			
		||||
 | 
			
		||||
namespace Kyoo.Abstractions.Models.Attributes
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	/// <summary>
 | 
			
		||||
	/// The targeted relation can be loaded via a call to <see cref="ILibraryManager.Load"/>.
 | 
			
		||||
	/// </summary>
 | 
			
		||||
 | 
			
		||||
@ -24,9 +24,10 @@ namespace Kyoo.Abstractions.Models
 | 
			
		||||
					return $"{ShowID}-s{SeasonNumber}";
 | 
			
		||||
				return $"{ShowSlug ?? Show?.Slug}-s{SeasonNumber}";
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			[UsedImplicitly] [NotNull] private set
 | 
			
		||||
			{
 | 
			
		||||
				Match match = Regex.Match(value ?? "", @"(?<show>.+)-s(?<season>\d+)");
 | 
			
		||||
				Match match = Regex.Match(value ?? string.Empty, @"(?<show>.+)-s(?<season>\d+)");
 | 
			
		||||
 | 
			
		||||
				if (!match.Success)
 | 
			
		||||
					throw new ArgumentException("Invalid season slug. Format: {showSlug}-s{seasonNumber}");
 | 
			
		||||
 | 
			
		||||
@ -51,30 +51,4 @@ namespace Kyoo.Abstractions.Models
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public ICollection<WatchedEpisode> CurrentlyWatching { get; set; }
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/// <summary>
 | 
			
		||||
	/// Metadata of episode currently watching by an user
 | 
			
		||||
	/// </summary>
 | 
			
		||||
	public class WatchedEpisode
 | 
			
		||||
	{
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// The ID of the user that started watching this episode.
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public int UserID { get; set; }
 | 
			
		||||
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// The ID of the episode started.
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public int EpisodeID { get; set; }
 | 
			
		||||
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// The <see cref="Episode"/> started.
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public Episode Episode { get; set; }
 | 
			
		||||
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// Where the player has stopped watching the episode (between 0 and 100).
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public int WatchedPercentage { get; set; }
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user