mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
ReSharper Reformat: Properties to expression bodied form.
This commit is contained in:
@@ -53,10 +53,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return null;
|
||||
}
|
||||
|
||||
protected override bool IsVideoEncoder
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
protected override bool IsVideoEncoder => false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
public EncodingJobOptions Options
|
||||
{
|
||||
get { return (EncodingJobOptions)BaseRequest; }
|
||||
set { BaseRequest = value; }
|
||||
get => (EncodingJobOptions)BaseRequest;
|
||||
set => BaseRequest = value;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
@@ -415,10 +415,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
/// Gets the encoder path.
|
||||
/// </summary>
|
||||
/// <value>The encoder path.</value>
|
||||
public string EncoderPath
|
||||
{
|
||||
get { return FFMpegPath; }
|
||||
}
|
||||
public string EncoderPath => FFMpegPath;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the media info.
|
||||
|
||||
@@ -54,10 +54,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return null;
|
||||
}
|
||||
|
||||
protected override bool IsVideoEncoder
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
protected override bool IsVideoEncoder => true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,10 +83,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
||||
return _encryption.DecryptString(password.Substring(2));
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "Open Subtitles"; }
|
||||
}
|
||||
public string Name => "Open Subtitles";
|
||||
|
||||
private SubtitleOptions GetOptions()
|
||||
{
|
||||
|
||||
@@ -60,13 +60,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
||||
_textEncoding = textEncoding;
|
||||
}
|
||||
|
||||
private string SubtitleCachePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(_appPaths.DataPath, "subtitles");
|
||||
}
|
||||
}
|
||||
private string SubtitleCachePath => Path.Combine(_appPaths.DataPath, "subtitles");
|
||||
|
||||
private Stream ConvertSubtitles(Stream stream,
|
||||
string inputFormat,
|
||||
|
||||
Reference in New Issue
Block a user