From 5823170a8482e9b3b66345978a88bc8ab7afb205 Mon Sep 17 00:00:00 2001 From: milarin Date: Sat, 13 May 2023 12:12:36 +0200 Subject: [PATCH] NanakoRaws: improved torrent pattern --- parsers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parsers.go b/parsers.go index c3e90ac..eba1c3b 100644 --- a/parsers.go +++ b/parsers.go @@ -84,7 +84,7 @@ var Parsers = []model.Parser{ { Identity: "NanakoRaws-JP", TorrentParser: RegexTorrentParser( - `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv \(include JPsub\)`, + `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv \(include JPsub.*?\)$`, TorrentParseOptions{ Name: 1, Episode: 2, @@ -94,14 +94,14 @@ var Parsers = []model.Parser{ }, ), FileParser: RegexFileParser( - `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv`, + `^\[NanakoRaws\] (.*?) - (\d+?)(?:v\d+)?(?: END)? \((.*?)p\)(?: \(.*?\))?\.mkv$`, FileParseOptions{ Name: 1, 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", },