mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-02 13:15:25 -04:00
Reformatted the files with notes.
This commit is contained in:
parent
e2751d42e8
commit
846456b41e
@ -1,4 +1,4 @@
|
|||||||
using Emby.Naming.Common;
|
using Emby.Naming.Common;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@ -236,7 +236,7 @@ namespace Emby.Naming.Video
|
|||||||
if (testFilename.StartsWith(folderName, StringComparison.OrdinalIgnoreCase))
|
if (testFilename.StartsWith(folderName, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
testFilename = testFilename.Substring(folderName.Length).Trim();
|
testFilename = testFilename.Substring(folderName.Length).Trim();
|
||||||
return testFilename.StartsWith("-", StringComparison.OrdinalIgnoreCase)||Regex.Replace(testFilename, @"\[([^]]*)\]", "").Trim() == string.Empty;
|
return testFilename.StartsWith("-", StringComparison.OrdinalIgnoreCase) || Regex.Replace(testFilename, @"\[([^]]*)\]", "").Trim() == string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -89,7 +89,8 @@ namespace Emby.Server.Implementations.Devices
|
|||||||
|
|
||||||
public DeviceId(IApplicationPaths appPaths, ILogger logger, IFileSystem fileSystem)
|
public DeviceId(IApplicationPaths appPaths, ILogger logger, IFileSystem fileSystem)
|
||||||
{
|
{
|
||||||
if (fileSystem == null) {
|
if (fileSystem == null)
|
||||||
|
{
|
||||||
throw new ArgumentNullException(nameof(fileSystem));
|
throw new ArgumentNullException(nameof(fileSystem));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@ namespace Emby.Server.Implementations.LiveTv
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dto.ParentBackdropImageTags = new []
|
dto.ParentBackdropImageTags = new[]
|
||||||
{
|
{
|
||||||
_imageProcessor.GetImageCacheTag(program, image)
|
_imageProcessor.GetImageCacheTag(program, image)
|
||||||
};
|
};
|
||||||
|
@ -207,7 +207,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
|||||||
throw new ArgumentNullException(nameof(buffer));
|
throw new ArgumentNullException(nameof(buffer));
|
||||||
|
|
||||||
if (offset + count < 0)
|
if (offset + count < 0)
|
||||||
throw new ArgumentOutOfRangeException(nameof(offset),"offset + count must not be negative");
|
throw new ArgumentOutOfRangeException(nameof(offset), "offset + count must not be negative");
|
||||||
|
|
||||||
if (offset + count > buffer.Length)
|
if (offset + count > buffer.Length)
|
||||||
throw new ArgumentException("offset + count must not be greater than the length of buffer");
|
throw new ArgumentException("offset + count must not be greater than the length of buffer");
|
||||||
|
@ -459,7 +459,7 @@ namespace Emby.Server.Implementations.Playlists
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(folderPath))
|
if (string.IsNullOrEmpty(folderPath))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("Folder path was null or empty.",nameof(folderPath));
|
throw new ArgumentException("Folder path was null or empty.", nameof(folderPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(fileAbsolutePath))
|
if (string.IsNullOrEmpty(fileAbsolutePath))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -29,7 +29,6 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
|||||||
/// <value>The scheduled task.</value>
|
/// <value>The scheduled task.</value>
|
||||||
public IScheduledTask ScheduledTask { get; private set; }
|
public IScheduledTask ScheduledTask { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the json serializer.
|
/// Gets or sets the json serializer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The json serializer.</value>
|
/// <value>The json serializer.</value>
|
||||||
|
@ -116,7 +116,6 @@ namespace Emby.Server.Implementations.Services
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(component)) continue;
|
if (string.IsNullOrEmpty(component)) continue;
|
||||||
|
|
||||||
|
|
||||||
if (StringContains(component, VariablePrefix)
|
if (StringContains(component, VariablePrefix)
|
||||||
&& component.IndexOf(ComponentSeperator) != -1)
|
&& component.IndexOf(ComponentSeperator) != -1)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Sorting;
|
using MediaBrowser.Controller.Sorting;
|
||||||
using MediaBrowser.Model.Querying;
|
using MediaBrowser.Model.Querying;
|
||||||
using System;
|
using System;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NLangDetect.Core.Extensions
|
namespace NLangDetect.Core.Extensions
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Common.Extensions;
|
using MediaBrowser.Common.Extensions;
|
||||||
using MediaBrowser.Controller.Configuration;
|
using MediaBrowser.Controller.Configuration;
|
||||||
using MediaBrowser.Controller.Devices;
|
using MediaBrowser.Controller.Devices;
|
||||||
using MediaBrowser.Controller.Dlna;
|
using MediaBrowser.Controller.Dlna;
|
||||||
@ -595,8 +595,10 @@ namespace MediaBrowser.Api.Playback
|
|||||||
/// <param name="request">The stream request.</param>
|
/// <param name="request">The stream request.</param>
|
||||||
private void ParseStreamOptions(StreamRequest request)
|
private void ParseStreamOptions(StreamRequest request)
|
||||||
{
|
{
|
||||||
foreach (var param in Request.QueryString) {
|
foreach (var param in Request.QueryString)
|
||||||
if (char.IsLower(param.Name[0])) {
|
{
|
||||||
|
if (char.IsLower(param.Name[0]))
|
||||||
|
{
|
||||||
// This was probably not parsed initially and should be a StreamOptions
|
// This was probably not parsed initially and should be a StreamOptions
|
||||||
// TODO: This should be incorporated either in the lower framework for parsing requests
|
// TODO: This should be incorporated either in the lower framework for parsing requests
|
||||||
// or the generated URL should correctly serialize it
|
// or the generated URL should correctly serialize it
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -16,7 +16,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
if (string.IsNullOrEmpty(person.Name))
|
if (string.IsNullOrEmpty(person.Name))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("The person's name was empty or null.",nameof(person));
|
throw new ArgumentException("The person's name was empty or null.", nameof(person));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalize
|
// Normalize
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Providers;
|
using MediaBrowser.Controller.Providers;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -155,7 +155,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("The path was empty or null.",nameof(path));
|
throw new ArgumentException("The path was empty or null.", nameof(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AdditionalLocations == null)
|
if (AdditionalLocations == null)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.IO;
|
using MediaBrowser.Model.IO;
|
||||||
using MediaBrowser.Common.Net;
|
using MediaBrowser.Common.Net;
|
||||||
using MediaBrowser.Controller.Configuration;
|
using MediaBrowser.Controller.Configuration;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
@ -320,7 +320,7 @@ namespace MediaBrowser.Providers.Omdb
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(seriesImdbId))
|
if (string.IsNullOrWhiteSpace(seriesImdbId))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("The series IMDb ID was null or whitespace.",nameof(seriesImdbId));
|
throw new ArgumentException("The series IMDb ID was null or whitespace.", nameof(seriesImdbId));
|
||||||
}
|
}
|
||||||
|
|
||||||
var imdbParam = seriesImdbId.StartsWith("tt", StringComparison.OrdinalIgnoreCase) ? seriesImdbId : "tt" + seriesImdbId;
|
var imdbParam = seriesImdbId.StartsWith("tt", StringComparison.OrdinalIgnoreCase) ? seriesImdbId : "tt" + seriesImdbId;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Common.Configuration;
|
using MediaBrowser.Common.Configuration;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Providers;
|
using MediaBrowser.Controller.Providers;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
@ -65,7 +65,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
|||||||
|
|
||||||
if (string.IsNullOrEmpty(metadataFile))
|
if (string.IsNullOrEmpty(metadataFile))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("The metadata file was empty or null.",nameof(metadataFile));
|
throw new ArgumentException("The metadata file was empty or null.", nameof(metadataFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
var settings = XmlReaderSettingsFactory.Create(false);
|
var settings = XmlReaderSettingsFactory.Create(false);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user