NanakoRaws: improved torrent pattern

This commit is contained in:
milarin 2023-05-13 12:12:36 +02:00
parent f097a0f56f
commit 5823170a84

View File

@ -84,7 +84,7 @@ var Parsers = []model.Parser{
{ {
Identity: "NanakoRaws-JP", Identity: "NanakoRaws-JP",
TorrentParser: RegexTorrentParser( TorrentParser: RegexTorrentParser(
`^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv \(include JPsub\)`, `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv \(include JPsub.*?\)$`,
TorrentParseOptions{ TorrentParseOptions{
Name: 1, Name: 1,
Episode: 2, Episode: 2,
@ -94,14 +94,14 @@ var Parsers = []model.Parser{
}, },
), ),
FileParser: RegexFileParser( FileParser: RegexFileParser(
`^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv`, `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv$`,
FileParseOptions{ FileParseOptions{
Name: 1, Name: 1,
Episode: 2, Episode: 2,
}, },
), ),
// tag 0th audio stream as japanese language and copy all other streams unchanged into output file // tag 0th audio stream and subtitle stream as japanese language and copy all other streams unchanged into output file
FileEncoding: "-map 0 -c:v copy -c:a copy -c:s copy -metadata:s:a:0 language=jpn -metadata:s:s:0 language=jpn", FileEncoding: "-map 0 -c:v copy -c:a copy -c:s copy -metadata:s:a:0 language=jpn -metadata:s:s:0 language=jpn",
}, },