1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Reformat and apply Stylecop rules

This commit is contained in:
ta264
2019-12-22 22:08:53 +00:00
committed by Qstick
parent d4fa9b7345
commit f02fa629cc
1186 changed files with 7105 additions and 5616 deletions
+3 -4
View File
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using NzbDrone.Core.Qualities;
using NzbDrone.Core.Movies;
using NzbDrone.Core.MediaFiles.MediaInfo;
using NzbDrone.Core.Languages;
using NzbDrone.Core.MediaFiles.MediaInfo;
using NzbDrone.Core.Movies;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.Parser.Model
{
@@ -26,7 +26,6 @@ namespace NzbDrone.Core.Parser.Model
public string ReleaseGroup { get; set; }
public string Edition { get; set; }
public override string ToString()
{
return Path;
@@ -1,42 +1,27 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using NzbDrone.Core.Qualities;
using NzbDrone.Core.Languages;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.Parser.Model
{
/// <summary>
/// Object containing all info our intelligent parser could find out from release / file title, release info and media info.
/// </summary>
public class ParsedMovieInfo
{
/// <summary>
/// The fully Parsed title. This is useful for finding the matching movie in the database.
/// </summary>
public string MovieTitle { get; set; }
/// <summary>
/// The simple release title replaces the actual movie title parsed with A Movie in the release / file title.
/// This is useful to not accidentaly identify stuff inside the actual movie title as quality tags, etc.
/// It also removes unecessary stuff such as file extensions.
/// </summary>
public string SimpleReleaseTitle { get; set; }
public QualityModel Quality { get; set; }
/// <summary>
/// Extra info is a dictionary containing extra info needed for correct quality assignement.
/// It is expanded by the augmenters.
/// </summary>
[JsonIgnore]
public Dictionary<string, object> ExtraInfo = new Dictionary<string, object>();
public List<Language> Languages = new List<Language>();
public string ReleaseGroup { get; set; }
public string ReleaseHash { get; set; }
public string Edition { get; set;}
public string Edition { get; set; }
public int Year { get; set; }
public string ImdbId { get; set; }
public override string ToString()
{
return String.Format("{0} - {1} {2}", MovieTitle, Year, Quality);
return string.Format("{0} - {1} {2}", MovieTitle, Year, Quality);
}
#if LIBRARY
+4 -13
View File
@@ -26,14 +26,11 @@ namespace NzbDrone.Core.Parser.Model
public string Codec { get; set; }
public string Resolution { get; set; }
public IndexerFlags IndexerFlags { get; set; }
public IndexerFlags IndexerFlags { get; set; }
public int Age
{
get
{
return DateTime.UtcNow.Subtract(PublishDate).Days;
}
get { return DateTime.UtcNow.Subtract(PublishDate).Days; }
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
@@ -42,10 +39,7 @@ namespace NzbDrone.Core.Parser.Model
public double AgeHours
{
get
{
return DateTime.UtcNow.Subtract(PublishDate).TotalHours;
}
get { return DateTime.UtcNow.Subtract(PublishDate).TotalHours; }
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
@@ -54,10 +48,7 @@ namespace NzbDrone.Core.Parser.Model
public double AgeMinutes
{
get
{
return DateTime.UtcNow.Subtract(PublishDate).TotalMinutes;
}
get { return DateTime.UtcNow.Subtract(PublishDate).TotalMinutes; }
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
@@ -1,5 +1,5 @@
using NzbDrone.Core.Movies;
using NzbDrone.Core.Download.Clients;
using NzbDrone.Core.Movies;
namespace NzbDrone.Core.Parser.Model
{