Browse Source

Merge tag 'v0.2.1' into develop

v0.2.1
t
pcnick 3 years ago
parent
commit
3f506e4872
  1. 22
      Animelibk.ps1

22
Animelibk.ps1

@ -68,14 +68,14 @@ function Get-StandName {
# 因應檔名不同而設定多組正規方式 # 因應檔名不同而設定多組正規方式
$EpisodeRegex = @( $EpisodeRegex = @(
"S\d{2}[\s\-]+E?(?<Episode>\d{2})" "(?:S\d{2})?[\s]?-[\s]E?(?<Episode>\d{2})"
"[\[\b\s](?<Episode>\d{2})[\s_]?(?:[vV]\d|END|FIN)[\]\b\s]" "[\[\b\s](?<Episode>\d{2})[\s_]?(?:[vV]\d|END|FIN)[\]\b\s]"
"\[(?<Episode>\d{1,2})\w{2}\]" "\[(?<Episode>\d{1,2})\w{2}\]"
"\[(?<Episode>\d{1,2})\]" "\[(?<Episode>\d{1,2})\]"
) )
$NameRegex = @( $NameRegex = @(
"[\[\b\s](?<Name>[^\[\]]*)[\]\b\s]$" "[\[\b\s](?<Name>[^\[\]]*)[\]\b\s]?$"
) )
$Result = $File.Name | % { Get-NameRegex $_ -Regex $EpisodeRegex } | % { $(Get-NameRegex $_["L"] -Regex $NameRegex -Exclude "(BD|DVD|HDTV)RIP" -End) + $_ } $Result = $File.Name | % { Get-NameRegex $_ -Regex $EpisodeRegex } | % { $(Get-NameRegex $_["L"] -Regex $NameRegex -Exclude "(BD|DVD|HDTV)RIP" -End) + $_ }
@ -145,8 +145,8 @@ exit 0;
# SIG # Begin signature block # SIG # Begin signature block
# MIIFxwYJKoZIhvcNAQcCoIIFuDCCBbQCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # MIIFxwYJKoZIhvcNAQcCoIIFuDCCBbQCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgE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gEEAYI3
# AgELMQ4wDAYKKwYBBAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQUZh3cBrwgHvdFbQwV # AgELMQ4wDAYKKwYBBAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQUfy6S1ZZuvCyXbcTa
# WcdOMvw1legwDQYJKoZIhvcNAQEBBQAEggEAGR0QzX3t1drjorcTh759QopFrvNd # +Mg7R++MiHYwDQYJKoZIhvcNAQEBBQAEggEADY8L0/u6xP/HsZnp4vFEMngDCcEU
# bb9VtZx5OJsLD8/v4YuNBB0IYT+03OSK7jWyIyH5OEj/jTn/Uj1WG37vu/GDdsmm # +tZYJZOk2bRN0BGMAnsVISg5EZ/3rilagNYT2LIDGpxUN8bQDltHviL5KGSiUVJB
# dp/3PWziGclgh0QrJmZjQPavqFXHpUrRCIQqT2J9Er4zMf95zWEu1Zsgpb/DNJqu # 9M/Ez58/SAXvmc1komq5iqWnLfxSc4GTPMoDZYrsZNT5HF6lThMeHul+tjFRo9vN
# 4gz5d7Yn+wllud0DuOiQDwz9fpSz+lgMhMybqR+wsW8ROLvzCuTHJaNvKffm7vFG # z3yYj40hXHHqdpPm2s9Qk1xfi8eu05l3k98x4sB8tflvchZzzeNq18kK/VdjRVWm
# NjbwZccH9xULGbAakX6H2lbcaMqGlkLYVkP3FRmk2zTG+qR4jxHzYhsttKb2ClSt # WW8Y+6tX6uk43sd9RJ5x10j/kBK89bm6FrtLrAoZj7bYPESsxHtn7wgNEqqi0stv
# L2qRWv7KJCPnw4RpFx/+L9buDHH25QERiINEOPF/pfpqHhaENTolaUe7vg== # 1BJrRj960K6Irhxx0jxTAj9xcv7LAFH/OuS/09/s5wbR6Os/fwGY3fILyg==
# SIG # End signature block # SIG # End signature block

Loading…
Cancel
Save