diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-11-17 10:28:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 10:28:39 -0500 |
| commit | f6ebdbc45e6dc455b7535dfe341ccba94b2c2a90 (patch) | |
| tree | 3b42753afda908633880519308fddc25bc249d71 /Emby.Naming/Audio/AudioFileParser.cs | |
| parent | fc3d6278be89b695aa79dc61d7f1226d4d6e441b (diff) | |
| parent | 04a712ab1d56a29a31e2c4991c16d338348762f4 (diff) | |
Merge pull request #4456 from martinek-stepan/emby-namig-nullable
Emby.Naming - nullable & code coverage
Diffstat (limited to 'Emby.Naming/Audio/AudioFileParser.cs')
| -rw-r--r-- | Emby.Naming/Audio/AudioFileParser.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Emby.Naming/Audio/AudioFileParser.cs b/Emby.Naming/Audio/AudioFileParser.cs index 6b2f4be93..8b47dd12e 100644 --- a/Emby.Naming/Audio/AudioFileParser.cs +++ b/Emby.Naming/Audio/AudioFileParser.cs @@ -1,6 +1,3 @@ -#nullable enable -#pragma warning disable CS1591 - using System; using System.IO; using System.Linq; @@ -8,8 +5,17 @@ using Emby.Naming.Common; namespace Emby.Naming.Audio { + /// <summary> + /// Static helper class to determine if file at path is audio file. + /// </summary> public static class AudioFileParser { + /// <summary> + /// Static helper method to determine if file at path is audio file. + /// </summary> + /// <param name="path">Path to file.</param> + /// <param name="options"><see cref="NamingOptions"/> containing AudioFileExtensions.</param> + /// <returns>True if file at path is audio file.</returns> public static bool IsAudioFile(string path, NamingOptions options) { var extension = Path.GetExtension(path); |
