/*
* Copyright (c) 2014-2017, Eren Okka
* Copyright (c) 2016-2017, Paul Miller
* Copyright (c) 2017-2018, Tyler Bratton
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
namespace AnitomySharp
{
///
/// AnitomySharp search configuration options
///
/// 提取元素时的默认配置项
///
public class Options
{
///
/// 提取元素时使用的分隔符
///
public string AllowedDelimiters { get; }
///
/// 是否尝试提取集数。`true`表示提取
///
public bool ParseEpisodeNumber { get; }
///
/// 是否尝试提取本集标题。`true`表示提取
///
public bool ParseEpisodeTitle { get; }
///
/// 是否提取文件扩展名。`true`表示提取
///
public bool ParseFileExtension { get; }
///
/// 是否提取发布组。`true`表示提取
///
public bool ParseReleaseGroup { get; }
///
/// 提取元素时的配置项
///
/// 默认值:" _.+,|"
/// 默认值:true
/// 默认值:true
/// 默认值:true
/// 默认值:true
public Options(string delimiters = " _.+,| ", bool episode = true, bool title = true, bool extension = true, bool group = true)
{
AllowedDelimiters = delimiters;
ParseEpisodeNumber = episode;
ParseEpisodeTitle = title;
ParseFileExtension = extension;
ParseReleaseGroup = group;
}
}
}